project method

Offset project(
  1. Size size
)

Projects the FocalPoint onto the map widget given its size. The resulting Offset represents the absolute pixel coordinates on the map widget where the marker should be aligned.

Implementation

Offset project(Size size) =>
    size.bottomRight(Offset.zero).scale(ratio.dx, ratio.dy) / 2 + offset;