maybeWhen<TResult extends Object?> method
Null safety
- TResult $default(
- int value
- {TResult fromARGB( )?,
- TResult fromRGBO( )?,
- TResult alphaBlend( )?,
- TResult material( )?,
- TResult materialAccentColor( )?,
- TResult primary(
- TResult onPrimary(
- TResult primaryContainer(
- TResult onPrimaryContainer(
- TResult secondary(
- TResult onSecondary(
- TResult secondaryContainer(
- TResult onSecondaryContainer(
- TResult tertiary(
- TResult onTertiary(
- TResult tertiaryContainer(
- TResult onTertiaryContainer(
- TResult error(
- TResult onError(
- TResult errorContainer(
- TResult onErrorContainer(
- TResult outline(
- TResult outlineVariant(
- TResult background(
- TResult onBackground(
- TResult surface(
- TResult onSurface(
- TResult surfaceVariant(
- TResult onSurfaceVariant(
- TResult inverseSurface(
- TResult onInverseSurface(
- TResult inversePrimary(
- TResult shadow(
- TResult scrim(
- TResult surfaceTint(
- required TResult orElse(
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
TResult Function(int value)? $default, {
TResult Function(int a, int r, int g, int b)? fromARGB,
TResult Function(int r, int g, int b, double opacity)? fromRGBO,
TResult Function(Color foreground, Color background)? alphaBlend,
TResult Function(int value, Map<int, Color> swatch)? material,
TResult Function(int value, Map<int, Color> swatch)? materialAccentColor,
TResult Function()? primary,
TResult Function()? onPrimary,
TResult Function()? primaryContainer,
TResult Function()? onPrimaryContainer,
TResult Function()? secondary,
TResult Function()? onSecondary,
TResult Function()? secondaryContainer,
TResult Function()? onSecondaryContainer,
TResult Function()? tertiary,
TResult Function()? onTertiary,
TResult Function()? tertiaryContainer,
TResult Function()? onTertiaryContainer,
TResult Function()? error,
TResult Function()? onError,
TResult Function()? errorContainer,
TResult Function()? onErrorContainer,
TResult Function()? outline,
TResult Function()? outlineVariant,
TResult Function()? background,
TResult Function()? onBackground,
TResult Function()? surface,
TResult Function()? onSurface,
TResult Function()? surfaceVariant,
TResult Function()? onSurfaceVariant,
TResult Function()? inverseSurface,
TResult Function()? onInverseSurface,
TResult Function()? inversePrimary,
TResult Function()? shadow,
TResult Function()? scrim,
TResult Function()? surfaceTint,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;