maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult box(
    1. BoxDecoration value
    )?,
  2. TResult shape(
    1. ShapeDecoration value
    )?,
  3. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(BoxDecoration value)? box,
      TResult Function(ShapeDecoration value)? shape,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;