getLabel method
Implementation
String? getLabel(String? currentValue) {
return switch (currentValue) {
'small' => context.loc.small,
'large' => context.loc.large,
'huge' => context.loc.huge,
String() => currentValue,
null => null,
};
}