maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult none(
    1. TextDecorationNone value
    )?,
  2. TResult underline(
    1. TextDecorationUnderline value
    )?,
  3. TResult overline(
    1. TextDecorationOverline value
    )?,
  4. TResult lineThrough(
    1. TextDecorationLineThrough value
    )?,
  5. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(TextDecorationNone value)? none,
      TResult Function(TextDecorationUnderline value)? underline,
      TResult Function(TextDecorationOverline value)? overline,
      TResult Function(TextDecorationLineThrough value)? lineThrough,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;