Shades class Null safety

A few options for functions that fulfill the ColorArithmetic definition.

Constructors

Shades()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

none(Color color, double factor) Color
Perform no shading and simply return the provided color.
withAlpha(Color color, double factor) Color
A factor between 0..254 represents a transparent color, while a factor of 255 will return the color entirely opaque. Factor is rounded to an int.
withBlack(Color color, double factor) Color
A positive factor darkens the color, while a negative factor lightens it. Clamped to appropriate range. Factor is round()ed to an int.
withWhite(Color color, double factor) Color
Default ColorArithmetic function for FooShadedSteps. [...]