operator == method

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

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