maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult linear(
    1. LinearCurve value
    )?,
  2. TResult cubic(
    1. Cubic value
    )?,
  3. TResult decelerate(
    1. DecelerateCurve value
    )?,
  4. TResult bounceIn(
    1. BounceInCurve value
    )?,
  5. TResult bounceOut(
    1. BounceOutCurve value
    )?,
  6. TResult bounceInOut(
    1. BounceInOutCurve value
    )?,
  7. TResult elasticIn(
    1. ElasticInCurve value
    )?,
  8. TResult elasticOut(
    1. ElasticOutCurve value
    )?,
  9. TResult elasticInOut(
    1. ElasticInOutCurve value
    )?,
  10. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(LinearCurve value)? linear,
      TResult Function(Cubic value)? cubic,
      TResult Function(DecelerateCurve value)? decelerate,
      TResult Function(BounceInCurve value)? bounceIn,
      TResult Function(BounceOutCurve value)? bounceOut,
      TResult Function(BounceInOutCurve value)? bounceInOut,
      TResult Function(ElasticInCurve value)? elasticIn,
      TResult Function(ElasticOutCurve value)? elasticOut,
      TResult Function(ElasticInOutCurve value)? elasticInOut,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;