Spectrum class abstract

Abstract helper class for functionality provided by Spectrum.

Consider alphaChannel, a method that will consider a num? strength for usage as the alpha channel of a color, provided a double for opacity, an int for alpha, or returning null otherwise.

Constructors

Spectrum()

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 Methods

alphaChannel(num? strength) int?
Considers the provided number(?) strength.
materialAccent(Color color, {SwatchMode mode = SwatchMode.shade, double? factor}) MaterialAccentColor
Accepts a Color and returns a MaterialAccentColor whose primary is the provided color and whose swatch is generated according to mode and factor.
materialColor(Color color, {SwatchMode mode = SwatchMode.shade, double? factor}) MaterialColor
Accepts a Color and returns a MaterialColor whose primary is the provided color and whose swatch is generated according to mode and factor.