FlexTonesEnum enum

Enum used to return and describes properties of the FlexTones static constructors.

By using tones and a given Brightness, returns the corresponding FlexTones made with same named constructor.

Also contains used icon for each tone and shade value to adjust used color value on the icon, used by UI building.

This is also a small demonstration of how we can use Dart 2.17 enhanced enums.

Inheritance
Available extensions

Values

disabled → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'None', describe: 'Tonal palettes are not in use', setup: 'Key color based tonal palettes are not used.\n' 'Enable at least one key color to …
material → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'Material 3', describe: 'Default Material 3 design tone map and chroma setup', setup: 'Primary - Chroma from key color, but min 48\n' 'Second…
soft → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'Soft', describe: 'Softer and more earth like tones than Material 3 defaults', setup: 'Primary - Chroma set to 30\n' 'Secondary - Chroma set …
vivid → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'Vivid', describe: 'More Vivid colors than Material 3 defaults', setup: 'Primary - Chroma from key color, but min 50\n' 'Secondary - Chroma f…
vividSurfaces → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'Vivid surfaces', describe: 'Like Vivid, but with more colorful containers, onColors and ' 'surface tones. Creates alpha blend like effect without &#…
highContrast → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'High contrast', describe: 'High contrast version, may be useful for accessibility', setup: 'Primary - Chroma from key color, but min 65\n' '…
ultraContrast → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'Ultra contrast', describe: 'Ultra high contrast version, useful for accessibility, ' 'less colorful than high contrast, especially dark mode', s…
jolly → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'Jolly', describe: 'Jolly color tones with more chroma and pop in them', setup: 'Primary - Chroma from key color, but min 55\n' 'Secondary - …
vividBackground → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'Vivid background', describe: 'Like Vivid surfaces, but with tone mapping for surface ' 'and background swapped', setup: 'Primary - Chroma fr…
oneHue → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'One hue', describe: 'If only primary key color given, scheme uses only one hue', setup: 'Primary - Chroma from key color, but min 55\n' 'Sec…
candyPop → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'Candy pop', describe: 'A high contrast color scheme, useful for accessible themes, ' 'with colors that pop like candy. Keeps the background and surf…
chroma → const FlexTonesEnum
const FlexTonesEnum(toneLabel: 'Chroma', describe: 'A color scheme that follows chroma of each used seed color. Useful ' 'for manual control of pop or low chromacity. It uses low &…

Properties

describe String
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData
final
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
setup String
final
shade int
final
toneLabel String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tones(Brightness brightness) → FlexTones
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

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