put method
Put a new value for the given key
Implementation
@override
FlyRadiusToken put(String key, double value) {
switch (key) {
case 'xs':
return copyWith(xs: value);
case 'sm':
return copyWith(sm: value);
case 'md':
return copyWith(md: value);
case 'lg':
return copyWith(lg: value);
case 'xl':
return copyWith(xl: value);
case 'xl2':
return copyWith(xl2: value);
case 'xl3':
return copyWith(xl3: value);
case 'xl4':
return copyWith(xl4: value);
default:
final newExtras = Map<String, double>.from(extras);
newExtras[key] = value;
return copyWith(extras: newExtras);
}
}