operator == method
Compares this cell to other for value equality.
Two cells are equal if their character, foreground, background, and styles match.
Implementation
@override
bool operator ==(Object other) {
  return other is BufferCell &&
      (other.char == char &&
          other.fg == fg &&
          other.bg == bg &&
          _setEquals(other.styles, styles));
}