put method

  1. @override
FlyBreakpointToken put(
  1. String key,
  2. double value
)
override

Put a new value for the given key

Implementation

@override
FlyBreakpointToken put(String key, double value) {
  switch (key) {
    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);
    default:
      final newExtras = Map<String, double>.from(extras);
      newExtras[key] = value;
      return copyWith(extras: newExtras);
  }
}