formatHex method
Returns a hexadecimal string representing this color in RGB space, such as
#f7eaba
.
If this color is not displayable, a suitable displayable color is returned instead. For example, RGB channel values greater than 255 are clamped to 255.
Implementation
@override
String formatHex() {
return '#${_hex(r)}${_hex(g)}${_hex(b)}';
}