getSize method
Calculates the size of the rendered object.
Implementation
@override
Size getSize({double minWidth = 0.0, double maxWidth = double.infinity}) {
return Size(
(length * scale + padding.horizontal).clamp(0, double.infinity),
padding.vertical.clamp(0, double.infinity),
);
}