getPreferredSize method Null safety
- bool isEnabled,
- bool isDiscrete,
- {TextPainter? labelPainter,
- double? textScaleFactor}
override
Returns the preferred size of the shape, based on the given conditions.
Implementation
@override
Size getPreferredSize(
bool isEnabled,
bool isDiscrete, {
TextPainter? labelPainter,
double? textScaleFactor,
}) {
assert(labelPainter != null);
assert(textScaleFactor != null && textScaleFactor >= 0);
return _pathPainter.getPreferredSize(labelPainter!, textScaleFactor!);
}