示例#1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (backgroundColor != null ? backgroundColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (contentTextStyle != null ? contentTextStyle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (padding != null ? padding.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (leadingPadding != null ? leadingPadding.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (color != null ? color.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (shape != null ? shape.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ elevation.GetHashCode();
         hashCode = (hashCode * 397) ^ (textStyle != null ? textStyle.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (backgroundColor != null ? backgroundColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (actionTextColor != null ? actionTextColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^
                    (disabledActionTextColor != null ? disabledActionTextColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (contentTextStyle != null ? contentTextStyle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ elevation?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (shape != null ? shape.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ behavior?.GetHashCode() ?? 0;
         return(hashCode);
     }
 }
示例#4
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = height.GetHashCode();
         hashCode = (hashCode * 397) ^ (padding != null ? padding.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (margin != null ? margin.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ verticalOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ preferBelow.GetHashCode();
         hashCode = (hashCode * 397) ^ excludeFromSemantics.GetHashCode();
         hashCode = (hashCode * 397) ^ (decoration != null ? decoration.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (textStyle != null ? textStyle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ waitDuration.GetHashCode();
         hashCode = (hashCode * 397) ^ showDuration.GetHashCode();
         return(hashCode);
     }
 }
示例#5
0
        public override int GetHashCode()
        {
            unchecked {
                var hashCode = indicator != null?indicator.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (indicatorSize != null ? indicatorSize.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (labelColor != null ? labelColor.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (labelPadding != null ? labelPadding.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (labelStyle != null ? labelStyle.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^
                           (unselectedLabelColor != null ? unselectedLabelColor.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^
                           (unselectedLabelStyle != null ? unselectedLabelStyle.GetHashCode() : 0);
                return(hashCode);
            }
        }
示例#6
0
 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);
     }
 }
示例#7
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (textStyle != null ? textStyle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (constraints != null ? constraints.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (color != null ? color.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (selectedColor != null ? selectedColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (disabledColor != null ? disabledColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (fillColor != null ? fillColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (focusColor != null ? focusColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (highlightColor != null ? highlightColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (hoverColor != null ? hoverColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (splashColor != null ? splashColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (borderColor != null ? borderColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (selectedBorderColor != null ? selectedBorderColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (disabledBorderColor != null ? disabledBorderColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (borderRadius != null ? borderRadius.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (borderWidth != null ? borderWidth.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#8
0
        public override int GetHashCode()
        {
            var hashCode = backgroundColor.GetHashCode();

            hashCode = (hashCode * 397) ^ deleteIconColor.GetHashCode();
            hashCode = (hashCode * 397) ^ disabledColor.GetHashCode();
            hashCode = (hashCode * 397) ^ selectedColor.GetHashCode();
            hashCode = (hashCode * 397) ^ secondarySelectedColor.GetHashCode();
            hashCode = (hashCode * 397) ^ shadowColor?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ selectedShadowColor?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ checkmarkColor?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ labelPadding.GetHashCode();
            hashCode = (hashCode * 397) ^ padding.GetHashCode();
            hashCode = (hashCode * 397) ^ shape.GetHashCode();
            hashCode = (hashCode * 397) ^ labelStyle.GetHashCode();
            hashCode = (hashCode * 397) ^ secondaryLabelStyle.GetHashCode();
            hashCode = (hashCode * 397) ^ brightness.GetHashCode();
            hashCode = (hashCode * 397) ^ elevation.GetHashCode();
            hashCode = (hashCode * 397) ^ pressElevation.GetHashCode();
            return(hashCode);
        }
示例#9
0
 public override int GetHashCode()
 {
     return(style != null ? style.GetHashCode() : 0);
 }