mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  1. TResult? $default(
    1. _TextStyle value
    )?,
  2. {TResult? displayLarge(
    1. DisplayLarge value
    )?,
  3. TResult? displayMedium(
    1. DisplayMedium value
    )?,
  4. TResult? displaySmall(
    1. DisplaySmall value
    )?,
  5. TResult? headlineLarge(
    1. HeadlineLarge value
    )?,
  6. TResult? headlineMedium(
    1. HeadlineMedium value
    )?,
  7. TResult? headlineSmall(
    1. HeadlineSmall value
    )?,
  8. TResult? bodyLarge(
    1. BodyLarge value
    )?,
  9. TResult? bodyMedium(
    1. BodyMedium value
    )?,
  10. TResult? bodySmall(
    1. BodySmall value
    )?,
  11. TResult? titleLarge(
    1. TitleLarge value
    )?,
  12. TResult? titleMedium(
    1. TitleMedium value
    )?,
  13. TResult? titleSmall(
    1. TitleSmall value
    )?,
  14. TResult? labelLarge(
    1. LabelLarge value
    )?,
  15. TResult? labelMedium(
    1. LabelMedium value
    )?,
  16. TResult? labelSmall(
    1. LabelSmall value
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  TResult? Function(_TextStyle value)? $default, {
  TResult? Function(DisplayLarge value)? displayLarge,
  TResult? Function(DisplayMedium value)? displayMedium,
  TResult? Function(DisplaySmall value)? displaySmall,
  TResult? Function(HeadlineLarge value)? headlineLarge,
  TResult? Function(HeadlineMedium value)? headlineMedium,
  TResult? Function(HeadlineSmall value)? headlineSmall,
  TResult? Function(BodyLarge value)? bodyLarge,
  TResult? Function(BodyMedium value)? bodyMedium,
  TResult? Function(BodySmall value)? bodySmall,
  TResult? Function(TitleLarge value)? titleLarge,
  TResult? Function(TitleMedium value)? titleMedium,
  TResult? Function(TitleSmall value)? titleSmall,
  TResult? Function(LabelLarge value)? labelLarge,
  TResult? Function(LabelMedium value)? labelMedium,
  TResult? Function(LabelSmall value)? labelSmall,
}) =>
    throw _privateConstructorUsedError;