ColorPalette class

Fluent design colors for UI elements.

Definitions, descriptions and color values are from the official Figma toolkit of Fluent Design: https://aka.ms/figmatoolkit.

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

Static Properties

background → BackgroundColors
Returns background colors.
no setter
fill → FillColors
Returns fill colors.
no setter
palette ColorPalette
Returns the color palette according to the current appearance.
no setter
shell → ShellColors
Returns shell colors.
no setter
stroke → StrokeColors
Returns stroke colors.
no setter
system → SystemColors
Returns system colors.
no setter
text → TextColors
Returns text colors.
no setter

Static Methods

init({required dynamic isDark, required AccentColors accent}) → dynamic
Initialize color palettes with system appearance and accent colors.