Scheme class
Prefer ColorScheme
. This class is the same concept as Flutter's
ColorScheme class, inlined to ensure parity across languages.
- Annotations
-
- @Deprecated('The `Scheme` class is deprecated in favor of `DynamicScheme`.\n' 'Please see https://github.com/material-foundation/material-color-utilities/blob/main/make_schemes.md' 'for migration guidance.')
Constructors
- Scheme({required int primary, required int onPrimary, required int primaryContainer, required int onPrimaryContainer, required int secondary, required int onSecondary, required int secondaryContainer, required int onSecondaryContainer, required int tertiary, required int onTertiary, required int tertiaryContainer, required int onTertiaryContainer, required int error, required int onError, required int errorContainer, required int onErrorContainer, required int background, required int onBackground, required int surface, required int onSurface, required int surfaceVariant, required int onSurfaceVariant, required int outline, required int outlineVariant, required int shadow, required int scrim, required int inverseSurface, required int inverseOnSurface, required int inversePrimary})
-
const
Properties
- background → int
-
final
- error → int
-
final
- errorContainer → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inverseOnSurface → int
-
final
- inversePrimary → int
-
final
- inverseSurface → int
-
final
- onBackground → int
-
final
- onError → int
-
final
- onErrorContainer → int
-
final
- onPrimary → int
-
final
- onPrimaryContainer → int
-
final
- onSecondary → int
-
final
- onSecondaryContainer → int
-
final
- onSurface → int
-
final
- onSurfaceVariant → int
-
final
- onTertiary → int
-
final
- onTertiaryContainer → int
-
final
- outline → int
-
final
- outlineVariant → int
-
final
- primary → int
-
final
- primaryContainer → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrim → int
-
final
- secondary → int
-
final
- secondaryContainer → int
-
final
- shadow → int
-
final
- surface → int
-
final
- surfaceVariant → int
-
final
- tertiary → int
-
final
- tertiaryContainer → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
dark(
int color) → Scheme -
darkContent(
int color) → Scheme -
darkFromCorePalette(
CorePalette palette) → Scheme -
light(
int color) → Scheme -
lightContent(
int color) → Scheme -
lightFromCorePalette(
CorePalette palette) → Scheme