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