equal static method
Implementation
static bool equal(ColorBase curr, Object other) {
if (other is Color) {
var o = other;
return o.toHexArgbString() == curr.toHexArgbString();
} else if (other is Rgba) {
var rgb = other;
return rgb.toHexArgbString() == curr.toHexArgbString();
} else if (other is Hsla) {
var hsla = other;
return hsla.toHexArgbString() == curr.toHexArgbString();
} else {
return false;
}
}