anchor property
The anchor in normalized coordinates specifying the anchor point of the overlay.
When position is used, the overlay shifts so that this anchor aligns with the given position. If bounds is specified, the anchor is the internal anchor position inside the bounds.
- An anchor of (0.0, 0.0) is the top-left corner.
- An anchor of (1.0, 1.0) is the bottom-right corner.
Defaults to Offset(0.5, 0.5)
, i.e., the center of the image.
If bearing is set, the image rotates around this anchor.
Implementation
final Offset? anchor;