size property

  1. @override
Size get size
override

The dimensions of the annotation for automatic hit testing.

This size is used by the framework to:

  • Calculate the bounding box for hit testing (see containsPoint)
  • Position selection highlights and borders
  • Compute layout and rendering bounds

Subclasses must implement this to return the annotation's current size.

Implementation

@override
Size get size => Size(markerSize, markerSize);