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