maybeWhen<TResult extends Object?> method
Null safety
- TResult $default(
- Brightness brightness,
- Color primary,
- Color onPrimary,
- Color? primaryContainer,
- Color? onPrimaryContainer,
- Color secondary,
- Color onSecondary,
- Color? secondaryContainer,
- Color? onSecondaryContainer,
- Color? tertiary,
- Color? onTertiary,
- Color? tertiaryContainer,
- Color? onTertiaryContainer,
- Color error,
- Color onError,
- Color? errorContainer,
- Color? onErrorContainer,
- Color background,
- Color onBackground,
- Color surface,
- Color onSurface,
- Color? surfaceVariant,
- Color? onSurfaceVariant,
- Color? outline,
- Color? outlineVariant,
- Color? shadow,
- Color? scrim,
- Color? inverseSurface,
- Color? onInverseSurface,
- Color? inversePrimary,
- Color? surfaceTint
- {TResult fromSeed(
- Color seedColor,
- Brightness brightness,
- Color? primary,
- Color? onPrimary,
- Color? primaryContainer,
- Color? onPrimaryContainer,
- Color? secondary,
- Color? onSecondary,
- Color? secondaryContainer,
- Color? onSecondaryContainer,
- Color? tertiary,
- Color? onTertiary,
- Color? tertiaryContainer,
- Color? onTertiaryContainer,
- Color? error,
- Color? onError,
- Color? errorContainer,
- Color? onErrorContainer,
- Color? outline,
- Color? outlineVariant,
- Color? background,
- Color? onBackground,
- Color? surface,
- Color? onSurface,
- Color? surfaceVariant,
- Color? onSurfaceVariant,
- Color? inverseSurface,
- Color? onInverseSurface,
- Color? inversePrimary,
- Color? shadow,
- Color? scrim,
- Color? surfaceTint
- required TResult orElse(
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
TResult Function(
Brightness brightness,
Color primary,
Color onPrimary,
Color? primaryContainer,
Color? onPrimaryContainer,
Color secondary,
Color onSecondary,
Color? secondaryContainer,
Color? onSecondaryContainer,
Color? tertiary,
Color? onTertiary,
Color? tertiaryContainer,
Color? onTertiaryContainer,
Color error,
Color onError,
Color? errorContainer,
Color? onErrorContainer,
Color background,
Color onBackground,
Color surface,
Color onSurface,
Color? surfaceVariant,
Color? onSurfaceVariant,
Color? outline,
Color? outlineVariant,
Color? shadow,
Color? scrim,
Color? inverseSurface,
Color? onInverseSurface,
Color? inversePrimary,
Color? surfaceTint)?
$default, {
TResult Function(
Color seedColor,
Brightness brightness,
Color? primary,
Color? onPrimary,
Color? primaryContainer,
Color? onPrimaryContainer,
Color? secondary,
Color? onSecondary,
Color? secondaryContainer,
Color? onSecondaryContainer,
Color? tertiary,
Color? onTertiary,
Color? tertiaryContainer,
Color? onTertiaryContainer,
Color? error,
Color? onError,
Color? errorContainer,
Color? onErrorContainer,
Color? outline,
Color? outlineVariant,
Color? background,
Color? onBackground,
Color? surface,
Color? onSurface,
Color? surfaceVariant,
Color? onSurfaceVariant,
Color? inverseSurface,
Color? onInverseSurface,
Color? inversePrimary,
Color? shadow,
Color? scrim,
Color? surfaceTint)?
fromSeed,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;