getLabel method

String? getLabel(
  1. String? currentValue
)

Implementation

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