RomanticColor extension

RomanticColor is an extension of Color. It contains some utility functions for color.

on

Methods

toHex({bool leadingHashSign = true}) String
Prefixes a hash sign if leadingHashSign is set to true (default is true).

Static Methods

fromHex(String hexString) Color
String is in the format "aabbcc" or "ffaabbcc" with an optional leading "#".
rainbowColorList(int size, [int alphaValue = 255]) List<Color>
Create a rainbow color list.
randomColor([bool withAlpha = true, int minValue = 0]) Color
Create a randomColor.