ContrastLevel class abstract final

Named contrast levels for Material 3 color schemes.

Material 3 baseline color schemes provide standard, medium, and high contrast levels. When the colorSchemeSeed parameter of the ThemeData constructor is null, use standard, medium, or high to select a token-backed baseline color scheme with that contrast level.

A custom double between -1.0 and 1.0 can also be passed as the contrastLevel parameter of the ThemeData constructor when colorSchemeSeed is provided, in which case the value is passed to ColorScheme.fromSeed.

See also:

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

high → const double
High contrast, corresponding to a contrast level of 1.0.
medium → const double
Medium contrast, corresponding to a contrast level of 0.5.
standard → const double
Standard contrast, corresponding to a contrast level of 0.0.