equal static method

bool equal(
  1. ColorBase curr,
  2. Object other
)

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;
  }
}