Variant enum

Set of themes supported by Dynamic Color. Instantiate the corresponding subclass, ex. SchemeTonalSpot, to create colors corresponding to the theme.

Inheritance

Values

monochrome → const Variant
const Variant('monochrome', 'All colors are grayscale, no chroma.')
neutral → const Variant
const Variant('neutral', 'Close to grayscale, a hint of chroma.')
tonalSpot → const Variant
const Variant('tonal spot', 'Pastel tokens, low chroma palettes (32).\nDefault Material You theme at 2021 launch.')
vibrant → const Variant
const Variant('vibrant', 'Pastel colors, high chroma palettes. (max).\nThe primary palette\'s chroma is at maximum.\nUse Fidelity instead if tokens should alter their tone to match the…
expressive → const Variant
const Variant('expressive', 'Pastel colors, medium chroma palettes.\nThe primary palette\'s hue is different from source color, for variety.')
content → const Variant
const Variant('content', 'Almost identical to Fidelity.\nTokens and palettes match source color.\nPrimary Container is source color, adjusted to ensure contrast with surfaces.\n\nTertiary …
fidelity → const Variant
const Variant('fidelity', 'Tokens and palettes match source color.\nPrimary Container is source color, adjusted to ensure contrast with surfaces.\nFor example, if source color is black, it…
rainbow → const Variant
const Variant('rainbow', 'A playful theme - the source color\'s hue does not appear in the theme.')
fruitSalad → const Variant
const Variant('fruit salad', 'A playful theme - the source color\'s hue does not appear in the theme.')

Properties

description String
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
label String
final
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

values → const List<Variant>
A constant List of the values in this enum, in order of their declaration.