Contrast enum
The prefers-contrast CSS media feature is used to detect whether the user has requested the web content to be
presented with a lower or higher contrast.
Values
- more → const Contrast
-
Indicates that user has notified the system that they prefer an interface that has a higher level of contrast.
const Contrast('more') - less → const Contrast
-
Indicates that user has notified the system that they prefer an interface that has a lower level of contrast.
const Contrast('less') - noPreference → const Contrast
-
Indicates that the user has made no preference known to the system. This keyword value evaluates as false in the Boolean context.
const Contrast('no-preference') - custom → const Contrast
-
Indicates that user has notified the system for using a specific set of colors, and the contrast implied by these colors matches neither more nor less. This value will match the color palette specified by users of `forced-colors: active
const Contrast('custom')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
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