maybeMap<TResult extends Object?> method Null safety

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

    Implementation

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