mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<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
    )?}
)
@optionalTypeArgs, inherited

Implementation

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