getPreferredSize method Null safety

Size getPreferredSize(
  1. bool isEnabled,
  2. bool isDiscrete
)

Returns the preferred size of the shape, based on the given conditions.

Implementation

Size getPreferredSize(bool isEnabled, bool isDiscrete);