ColorPalette class

Holds a color palette (List<HTMLColor>).

Constructors

ColorPalette(List<HTMLColor> _basicColors)
ColorPalette.from(dynamic basicColors)
factory

Properties

basicColors List<HTMLColor>
Returns the basic colors of this palette.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asHTML({int? colorWidth, int? colorHeight, int colorMargin = 5, bool inlineBlock = false}) String
Returns a <div> with a visual palette of colors _basicColors.
generateHTMLPalette(int size) List<String>
Same as generatePalette, but returns HTML string colors.
generatePalette(int size) List<HTMLColor>
Generates a new palette with specific color size.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString([bool forceRGBA = false]) String
A string representation of this object.
override

Operators

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