Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            var hashCode = clipBehavior?.GetHashCode() ?? 0;

            hashCode = (hashCode * 397) ^ color?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ shadowColor?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ elevation?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ margin?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ shape?.GetHashCode() ?? 0;
            return(hashCode);
        }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (int)(alignment ?? 0);
         hashCode = (hashCode * 397) ^ (int)(mainAxisSize ?? 0);
         hashCode = (hashCode * 397) ^ (int)(buttonTextTheme ?? 0);
         hashCode = (hashCode * 397) ^ (buttonMinWidth?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (buttonHeight?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (buttonPadding != null ? buttonPadding.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (buttonAlignedDropdown?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (int)(layoutBehavior ?? 0);
         hashCode = (hashCode * 397) ^ (int)(overflowDirection ?? 0);
         return(hashCode);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 6
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);
        }