positionToPoints method
Implementation
List<Offset> positionToPoints(Position pos) {
return <Offset>[
Offset(pos.topLeftX.toDouble(), pos.topLeftY.toDouble()),
Offset(pos.topRightX.toDouble(), pos.topRightY.toDouble()),
Offset(pos.bottomRightX.toDouble(), pos.bottomRightY.toDouble()),
Offset(pos.bottomLeftX.toDouble(), pos.bottomLeftY.toDouble()),
Offset(pos.topLeftX.toDouble(), pos.topLeftY.toDouble()),
];
}