Ejemplo n.º 1
0
        public bool Equals(ToggleButtonsThemeData other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(textStyle.Equals(other.textStyle) &&
                   constraints.Equals(other.constraints) &&
                   color.Equals(other.color) &&
                   selectedColor.Equals(other.selectedColor) &&
                   disabledColor.Equals(other.disabledColor) &&
                   fillColor.Equals(other.fillColor) &&
                   focusColor.Equals(other.focusColor) &&
                   highlightColor.Equals(other.highlightColor) &&
                   hoverColor.Equals(other.hoverColor) &&
                   splashColor.Equals(other.splashColor) &&
                   borderColor.Equals(other.borderColor) &&
                   selectedBorderColor.Equals(other.selectedBorderColor) &&
                   disabledBorderColor.Equals(other.disabledBorderColor) &&
                   borderRadius.Equals(other.borderRadius) &&
                   borderWidth.Equals(other.borderWidth));
        }
Ejemplo n.º 2
0
        public bool Equals(TooltipThemeData other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(height.Equals(other.height) &&
                   padding.Equals(other.padding) &&
                   margin.Equals(other.margin) &&
                   verticalOffset.Equals(other.verticalOffset) &&
                   preferBelow == other.preferBelow &&
                   excludeFromSemantics == other.excludeFromSemantics &&
                   decoration.Equals(other.decoration) &&
                   textStyle.Equals(other.textStyle) &&
                   waitDuration.Equals(other.waitDuration) &&
                   showDuration.Equals(other.showDuration));
        }