Shades class abstract
A few options for functions that fulfill the ColorArithmetic definition.
Constructors
- Shades()
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
-
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 of255
will return the color entirely opaque. Factor is rounded to anint
. -
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 anint
. -
withWhite(
Color color, double factor) → Color -
Default ColorArithmetic function for
FooShadedSteps
.