operator == method

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

按格子全部字段比较。

Implementation

@override
bool operator ==(Object other) =>
    other is GridButton &&
    other.x == x &&
    other.y == y &&
    other.col == col &&
    other.row == row &&
    other.style == style &&
    listEquals(other.texts, texts) &&
    listEquals(other.images, images) &&
    other.painter == painter;