How can this list of map objects be refactored for better reading?
The goal is to have a list variable that stores the x and y values for a couple of points in a compact way. It does not have to be a list of map objects, I just found it the most suitable at the time of writing.
final List<Map<String, double>> _positions = [
{
'x': _offsetCircle + _circleDistanceHorizontal * 1,
'y': _height * 0.120
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 2,
'y': _height * 0.075
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 3,
'y': _height * 0.095
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 4,
'y': _height * 0.070
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 5,
'y': _height * 0.085
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 6,
'y': _height * 0.055
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 7,
'y': _height * 0.060
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 8,
'y': _height * 0.060
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 9,
'y': _height * 0.045
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 10,
'y': _height * 0.025
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 11,
'y': _height * 0.04
},
{
'x': _offsetCircle + _circleDistanceHorizontal * 12,
'y': _height * 0.005
}
];