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