map<TResult extends Object?> method Null safety

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

Implementation

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