mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  1. {TResult? linear(
    1. LinearGradient value
    )?,
  2. TResult? radial(
    1. RadialGradient value
    )?,
  3. TResult? sweep(
    1. SweepGradient value
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(LinearGradient value)? linear,
  TResult? Function(RadialGradient value)? radial,
  TResult? Function(SweepGradient value)? sweep,
}) =>
    throw _privateConstructorUsedError;