Color class Null safety

SVG color enum and helper class. Make pattern and conversion easy.

Constructors

Color(String value)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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 Properties

aliceblue Color
final
aqua Color
final
aquamarine Color
final
azure Color
final
beige Color
final
bisque Color
final
black Color
final
blanchedalmond Color
final
blue Color
final
blueviolet Color
final
brown Color
final
burlywood Color
final
cadetblue Color
final
chartreuse Color
final
chocolate Color
final
coral Color
final
cornflowerblue Color
final
cornsilk Color
final
crimson Color
final
cyan Color
final
darkblue Color
final
darkcyan Color
final
darkgoldenrod Color
final
darkgray Color
final
darkgreen Color
final
darkgrey Color
final
darkkhaki Color
final
darkmagenta Color
final
darkolivegreen Color
final
darkorange Color
final
darkorchid Color
final
darkred Color
final
darksalmon Color
final
darkseagreen Color
final
darkslateblue Color
final
darkslategray Color
final
darkslategrey Color
final
darkturquoise Color
final
darkviolet Color
final
deeppink Color
final
deepskyblue Color
final
dimgray Color
final
dimgrey Color
final
dodgerblue Color
final
firebrick Color
final
floralwhite Color
final
forestgreen Color
final
fuchsia Color
final
gainsboro Color
final
ghostwhite Color
final
gold Color
final
goldenrod Color
final
gray Color
final
green Color
final
greenyellow Color
final
grey Color
final
honeydew Color
final
hotpink Color
final
indianred Color
final
indigo Color
final
ivory Color
final
khaki Color
final
lavender Color
final
lavenderblush Color
final
lawngreen Color
final
lemonchiffon Color
final
lightblue Color
final
lightcoral Color
final
lightcyan Color
final
lightgoldenrodyellow Color
final
lightgray Color
final
lightgreen Color
final
lightgrey Color
final
lightpink Color
final
lightsalmon Color
final
lightseagreen Color
final
lightskyblue Color
final
lightslategray Color
final
lightslategrey Color
final
lightsteelblue Color
final
lightyellow Color
final
lime Color
final
limegreen Color
final
linen Color
final
magenta Color
final
maroon Color
final
mediumaquamarine Color
final
mediumblue Color
final
mediumorchid Color
final
mediumpurple Color
final
mediumseagreen Color
final
mediumslateblue Color
final
mediumspringgreen Color
final
mediumturquoise Color
final
mediumvioletred Color
final
midnightblue Color
final
mintcream Color
final
mistyrose Color
final
moccasin Color
final
final
final
none Color
final
oldlace Color
final
olive Color
final
olivedrab Color
final
orange Color
final
orangered Color
final
orchid Color
final
palegoldenrod Color
final
palegreen Color
final
paleturquoise Color
final
palevioletred Color
final
papayawhip Color
final
peachpuff Color
final
peru Color
final
pink Color
final
plum Color
final
powderblue Color
final
purple Color
final
red Color
final
rosybrown Color
final
royalblue Color
final
saddlebrown Color
final
salmon Color
final
sandybrown Color
final
seagreen Color
final
seashell Color
final
sienna Color
final
silver Color
final
skyblue Color
final
slateblue Color
final
slategray Color
final
slategrey Color
final
snow Color
final
springgreen Color
final
steelblue Color
final
tan Color
final
teal Color
final
thistle Color
final
tomato Color
final
turquoise Color
final
violet Color
final
wheat Color
final
white Color
final
whitesmoke Color
final
yellow Color
final
yellowgreen Color
final

Static Methods

hex(String value) Color
rgb(int r, int g, int b) Color
toXml(Color? color) String