operator == method

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

Two themes are equal when every color is, so a theme built anew on each rebuild is not taken for a change of color scheme.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  return other is TerminalTheme &&
      other.cursor == cursor &&
      other.selection == selection &&
      other.foreground == foreground &&
      other.background == background &&
      other.black == black &&
      other.red == red &&
      other.green == green &&
      other.yellow == yellow &&
      other.blue == blue &&
      other.magenta == magenta &&
      other.cyan == cyan &&
      other.white == white &&
      other.brightBlack == brightBlack &&
      other.brightRed == brightRed &&
      other.brightGreen == brightGreen &&
      other.brightYellow == brightYellow &&
      other.brightBlue == brightBlue &&
      other.brightMagenta == brightMagenta &&
      other.brightCyan == brightCyan &&
      other.brightWhite == brightWhite &&
      other.searchHitBackground == searchHitBackground &&
      other.searchHitBackgroundCurrent == searchHitBackgroundCurrent &&
      other.searchHitForeground == searchHitForeground;
}