getDefaultDimensions method
Get component-specific default dimensions. Returns a record with (width, height, paddingH, paddingV).
Implementation
@override
({double width, double height, double paddingH, double paddingV})
getDefaultDimensions() {
// Toggle uses width/height for track, paddingH/paddingV unused (set to 0)
return (width: 70.0, height: 36.0, paddingH: 0.0, paddingV: 0.0);
}