mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<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
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<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,
}) =>
    throw _privateConstructorUsedError;