ColorGenerator class

A utility class for generating random colors.

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
pick() Color
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

i ColorGenerator
no setter

Static Methods

generate({int minOpacity = 150, int maxOpacity = 255}) Color
Generates a random color with specified opacity range.
generates({int minOpacity = 150, int maxOpacity = 255, int length = 2, List<Color> colors = const []}) List<Color>
Generates a list of random colors or colors from the given list with specified opacity range.
init(Iterable<Color> colors) → void