Variant enum

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

Inheritance

Constructors

Variant(String label, String description)
const

Values

monochrome → const Variant
Variant('monochrome', 'All colors are grayscale, no chroma.')
neutral → const Variant
Variant('neutral', 'Close to grayscale, a hint of chroma.')
tonalSpot → const Variant
Variant('tonal spot', 'Pastel tokens, low chroma palettes (32).\nDefault Material You theme at 2021 launch.')
vibrant → const Variant
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 palet…
expressive → const Variant
Variant('expressive', 'Pastel colors, medium chroma palettes.\nThe primary palette\'s hue is different from source color, for variety.')
content → const Variant
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 palett…
fidelity → const Variant
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 is li…
rainbow → const Variant
Variant('rainbow', 'A playful theme - the source color\'s hue does not appear in the theme.')
fruitSalad → const Variant
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.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
label String
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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.
[monochrome, neutral, tonalSpot, vibrant, expressive, content, fidelity, rainbow, fruitSalad]