maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult rotation(
    1. GradientRotation value
    )?,
  2. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(GradientRotation value)? rotation,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;