ColorGenerator class abstract
Color generator for Charts Series/Categories.
Constructors
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
-
buildColors<
C> (List< C> keys) → Map<C, String> -
Builds a Map with a color for each provided key from parameter
keys
. -
buildDisabledColors<
C> (List< C> keys) → Map<C, String> -
Builds a Map with a disabled color for each provided key from parameter
keys
. -
generateColor(
String name, int index, int total) → String -
Generate a HTML color using the entry
index
andtotal
elements in the Charts as reference. Thename
of the Series/Category is supplied for advanced implementations. -
generateDisabledColor(
String name, int index, int total) → String - Same as generateColor but for disabled element.
-
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
-
buildDColorsFromFunction<
C> (List< C> keys, GenerateColorFunction generateColorFunction) → Map<C, String> -
Builds a Map with a color for each provided key from parameter
keys
usinggenerateColorFunction
.