When I copy folded code it just pastes the beginning line (that's visible).
For example if I copy this code when it's folded:
Expanded(
flex: 2,
child: Image(
image: AssetImage('images/dice1.png'),
),
),
It will just paste the starting code:
Expanded(