ColorVariants class

A set of color variants base on a regular color.

A set can be generated automatically from the ColorVariants.fromRegular factory.

Constructors

ColorVariants({required Color regular, required Color light, required Color dark, required Color invert})
Creates a new set of variants from all the colors.
const
ColorVariants.fromRegular(Color color)
Generates automatically variants, based on an input color.
factory

Properties

dark Color
A dark variant of the regular color.
final
hashCode int
The hash code for this object.
no setterinherited
invert Color
A color that fits well as the foreground of the regular color.
final
light Color
A very light variant of the regular color.
final
regular Color
The base color.
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