put method

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

Put a new value for the given key

Implementation

@override
FlyTrackingToken put(String key, double value) {
  switch (key) {
    case 'tighter':
      return copyWith(tighter: value);
    case 'tight':
      return copyWith(tight: value);
    case 'normal':
      return copyWith(normal: value);
    case 'wide':
      return copyWith(wide: value);
    case 'wider':
      return copyWith(wider: value);
    case 'widest':
      return copyWith(widest: value);
    default:
      final newExtras = Map<String, double>.from(extras);
      newExtras[key] = value;
      return copyWith(extras: newExtras);
  }
}