operator == method

  1. @override
bool operator ==(
  1. Object toCompare
)
override

Compares two instances of the Cell borders.

Implementation

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(Object toCompare) {
  // ignore: test_types_in_equals
  final BordersCollection toCompareBorders = toCompare as BordersCollection;

  return all.color == toCompareBorders.all.color &&
      all.colorRgb == toCompareBorders.all.colorRgb &&
      all.lineStyle == toCompareBorders.all.lineStyle &&
      left.color == toCompareBorders.left.color &&
      left.colorRgb == toCompareBorders.left.colorRgb &&
      left.lineStyle == toCompareBorders.left.lineStyle &&
      right.color == toCompareBorders.right.color &&
      right.colorRgb == toCompareBorders.right.colorRgb &&
      right.lineStyle == toCompareBorders.right.lineStyle &&
      top.color == toCompareBorders.top.color &&
      top.colorRgb == toCompareBorders.top.colorRgb &&
      top.lineStyle == toCompareBorders.top.lineStyle &&
      bottom.color == toCompareBorders.bottom.color &&
      bottom.colorRgb == toCompareBorders.bottom.colorRgb &&
      bottom.lineStyle == toCompareBorders.bottom.lineStyle;
}