getSize abstract method Null safety

Size getSize(
  1. {double minWidth = 0.0,
  2. double maxWidth = double.infinity}
)

Abstract method to get the size of the rendered object.

Implementing/extending classes must implement its behavior to provide the correct size This size is used by the UI to detect movement, pinching and rotating actions.

Implementation

Size getSize({double minWidth = 0.0, double maxWidth = double.infinity});