hasRepeatedFlags method
- SemanticsFlags other
Checks if any of the boolean semantic flags are set to true
in both this instance and the other instance.
Implementation
bool hasRepeatedFlags(SemanticsFlags other) {
return isChecked.hasConflict(other.isChecked) ||
isSelected.hasConflict(other.isSelected) ||
isEnabled.hasConflict(other.isEnabled) ||
isToggled.hasConflict(other.isToggled) ||
isEnabled.hasConflict(other.isEnabled) ||
isExpanded.hasConflict(other.isExpanded) ||
isRequired.hasConflict(other.isRequired) ||
isFocused.hasConflict(other.isFocused) ||
(isButton && other.isButton) ||
(isTextField && other.isTextField) ||
(isInMutuallyExclusiveGroup && other.isInMutuallyExclusiveGroup) ||
(isHeader && other.isHeader) ||
(isObscured && other.isObscured) ||
(scopesRoute && other.scopesRoute) ||
(namesRoute && other.namesRoute) ||
(isHidden && other.isHidden) ||
(isImage && other.isImage) ||
(isLiveRegion && other.isLiveRegion) ||
(hasImplicitScrolling && other.hasImplicitScrolling) ||
(isMultiline && other.isMultiline) ||
(isReadOnly && other.isReadOnly) ||
(isLink && other.isLink) ||
(isSlider && other.isSlider) ||
(isKeyboardKey && other.isKeyboardKey);
}