int hashCode

Get a hash code for this object.

All objects have hash codes. Hash codes are guaranteed to be the same for objects that are equal when compared using the equality operator ==. Other than that there are no guarantees about the hash codes. They will not be consistent between runs and there are no distribution guarantees.

If a subclass overrides hashCode it should override the equality operator as well to maintain consistency.

Source

@override
int get hashCode {
  return hashValues(
    brightness,
    primaryColor,
    primaryColorBrightness,
    canvasColor,
    scaffoldBackgroundColor,
    cardColor,
    dividerColor,
    highlightColor,
    splashColor,
    selectedRowColor,
    unselectedWidgetColor,
    disabledColor,
    buttonColor,
    secondaryHeaderColor,
    textSelectionColor,
    textSelectionHandleColor,
    backgroundColor,
    accentColor,
    accentColorBrightness,
    hashValues( // Too many values.
      indicatorColor,
      hintColor,
      errorColor,
      textTheme,
      primaryTextTheme,
      accentTextTheme,
      iconTheme,
      primaryIconTheme,
      accentIconTheme,
      platform,
    )
  );
}