public override int GetHashCode() { var hashCode = brightness?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ color?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ elevation?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ iconTheme?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ actionsIconTheme?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ textTheme?.GetHashCode() ?? 0; return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = (backgroundColor != null ? backgroundColor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ elevation.GetHashCode(); hashCode = (hashCode * 397) ^ (unselectedLabelTextStyle != null ? unselectedLabelTextStyle.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (selectedLabelTextStyle != null ? selectedLabelTextStyle.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (unselectedIconTheme != null ? unselectedIconTheme.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (selectedIconTheme != null ? selectedIconTheme.GetHashCode() : 0); hashCode = (hashCode * 397) ^ groupAlignment.GetHashCode(); hashCode = (hashCode * 397) ^ labelType.GetHashCode(); return(hashCode); } }