mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  1. TResult? $default(
    1. _Color value
    )?,
  2. {TResult? fromARGB(
    1. ColorARGB value
    )?,
  3. TResult? fromRGBO(
    1. ColorRGBO value
    )?,
  4. TResult? alphaBlend(
    1. ColorAlphaBlend value
    )?,
  5. TResult? material(
    1. MaterialColor value
    )?,
  6. TResult? materialAccentColor(
    1. MaterialAccentColor value
    )?,
  7. TResult? primary(
    1. PrimaryColor value
    )?,
  8. TResult? onPrimary(
    1. OnPrimaryColor value
    )?,
  9. TResult? primaryContainer(
    1. PrimaryContainerColor value
    )?,
  10. TResult? onPrimaryContainer(
    1. OnPrimaryContainerColor value
    )?,
  11. TResult? secondary(
    1. SecondaryColor value
    )?,
  12. TResult? onSecondary(
    1. OnSecondaryColor value
    )?,
  13. TResult? secondaryContainer(
    1. SecondaryContainerColor value
    )?,
  14. TResult? onSecondaryContainer(
    1. OnSecondaryContainerColor value
    )?,
  15. TResult? tertiary(
    1. TertiaryColor value
    )?,
  16. TResult? onTertiary(
    1. OnTertiaryColor value
    )?,
  17. TResult? tertiaryContainer(
    1. TertiaryContainerColor value
    )?,
  18. TResult? onTertiaryContainer(
    1. OnTertiaryContainerColor value
    )?,
  19. TResult? error(
    1. ErrorColor value
    )?,
  20. TResult? onError(
    1. OnErrorColor value
    )?,
  21. TResult? errorContainer(
    1. ErrorContainerColor value
    )?,
  22. TResult? onErrorContainer(
    1. OnErrorContainerColor value
    )?,
  23. TResult? outline(
    1. OutlineColor value
    )?,
  24. TResult? outlineVariant(
    1. OutlineVariantColor value
    )?,
  25. TResult? background(
    1. BackgroundColor value
    )?,
  26. TResult? onBackground(
    1. OnBackgroundColor value
    )?,
  27. TResult? surface(
    1. SurfaceColor value
    )?,
  28. TResult? onSurface(
    1. OnSurfaceColor value
    )?,
  29. TResult? surfaceVariant(
    1. SurfaceVariantColor value
    )?,
  30. TResult? onSurfaceVariant(
    1. OnSurfaceVariantColor value
    )?,
  31. TResult? inverseSurface(
    1. InverseSurfaceColor value
    )?,
  32. TResult? onInverseSurface(
    1. OnInverseSurfaceColor value
    )?,
  33. TResult? inversePrimary(
    1. InversePrimaryColor value
    )?,
  34. TResult? shadow(
    1. ShadowColor value
    )?,
  35. TResult? scrim(
    1. ScrimColor value
    )?,
  36. TResult? surfaceTint(
    1. SurfaceTintColor value
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  TResult? Function(_Color value)? $default, {
  TResult? Function(ColorARGB value)? fromARGB,
  TResult? Function(ColorRGBO value)? fromRGBO,
  TResult? Function(ColorAlphaBlend value)? alphaBlend,
  TResult? Function(MaterialColor value)? material,
  TResult? Function(MaterialAccentColor value)? materialAccentColor,
  TResult? Function(PrimaryColor value)? primary,
  TResult? Function(OnPrimaryColor value)? onPrimary,
  TResult? Function(PrimaryContainerColor value)? primaryContainer,
  TResult? Function(OnPrimaryContainerColor value)? onPrimaryContainer,
  TResult? Function(SecondaryColor value)? secondary,
  TResult? Function(OnSecondaryColor value)? onSecondary,
  TResult? Function(SecondaryContainerColor value)? secondaryContainer,
  TResult? Function(OnSecondaryContainerColor value)? onSecondaryContainer,
  TResult? Function(TertiaryColor value)? tertiary,
  TResult? Function(OnTertiaryColor value)? onTertiary,
  TResult? Function(TertiaryContainerColor value)? tertiaryContainer,
  TResult? Function(OnTertiaryContainerColor value)? onTertiaryContainer,
  TResult? Function(ErrorColor value)? error,
  TResult? Function(OnErrorColor value)? onError,
  TResult? Function(ErrorContainerColor value)? errorContainer,
  TResult? Function(OnErrorContainerColor value)? onErrorContainer,
  TResult? Function(OutlineColor value)? outline,
  TResult? Function(OutlineVariantColor value)? outlineVariant,
  TResult? Function(BackgroundColor value)? background,
  TResult? Function(OnBackgroundColor value)? onBackground,
  TResult? Function(SurfaceColor value)? surface,
  TResult? Function(OnSurfaceColor value)? onSurface,
  TResult? Function(SurfaceVariantColor value)? surfaceVariant,
  TResult? Function(OnSurfaceVariantColor value)? onSurfaceVariant,
  TResult? Function(InverseSurfaceColor value)? inverseSurface,
  TResult? Function(OnInverseSurfaceColor value)? onInverseSurface,
  TResult? Function(InversePrimaryColor value)? inversePrimary,
  TResult? Function(ShadowColor value)? shadow,
  TResult? Function(ScrimColor value)? scrim,
  TResult? Function(SurfaceTintColor value)? surfaceTint,
}) =>
    throw _privateConstructorUsedError;