operator == method

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

Themes with the same colors and the same tagColor function are equal: ThemeData compares extensions by ==, and without equality every new theme copy would rebuild all its consumers.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is LogViewerTheme &&
        other.traceColor == traceColor &&
        other.debugColor == debugColor &&
        other.infoColor == infoColor &&
        other.warningColor == warningColor &&
        other.errorColor == errorColor &&
        other.fatalColor == fatalColor &&
        other.warningBackground == warningBackground &&
        other.errorBackground == errorBackground &&
        other.tagColor == tagColor;