merge method
- SemanticsFlags other
Combines two sets of flags, such that if a flag it set to true in any of the two sets, the resulting set contains that flag set to true.
Implementation
SemanticsFlags merge(SemanticsFlags other) {
return SemanticsFlags(
hasCheckedState: hasCheckedState || other.hasCheckedState,
isChecked: isChecked || other.isChecked,
isSelected: isSelected || other.isSelected,
isButton: isButton || other.isButton,
isTextField: isTextField || other.isTextField,
isFocused: isFocused || other.isFocused,
hasEnabledState: hasEnabledState || other.hasEnabledState,
isEnabled: isEnabled || other.isEnabled,
isInMutuallyExclusiveGroup: isInMutuallyExclusiveGroup || other.isInMutuallyExclusiveGroup,
isHeader: isHeader || other.isHeader,
isObscured: isObscured || other.isObscured,
scopesRoute: scopesRoute || other.scopesRoute,
namesRoute: namesRoute || other.namesRoute,
isHidden: isHidden || other.isHidden,
isImage: isImage || other.isImage,
isLiveRegion: isLiveRegion || other.isLiveRegion,
hasToggledState: hasToggledState || other.hasToggledState,
isToggled: isToggled || other.isToggled,
hasImplicitScrolling: hasImplicitScrolling || other.hasImplicitScrolling,
isMultiline: isMultiline || other.isMultiline,
isReadOnly: isReadOnly || other.isReadOnly,
isFocusable: isFocusable || other.isFocusable,
isLink: isLink || other.isLink,
isSlider: isSlider || other.isSlider,
isKeyboardKey: isKeyboardKey || other.isKeyboardKey,
isCheckStateMixed: isCheckStateMixed || other.isCheckStateMixed,
hasExpandedState: hasExpandedState || other.hasExpandedState,
isExpanded: isExpanded || other.isExpanded,
hasSelectedState: hasSelectedState || other.hasSelectedState,
hasRequiredState: hasRequiredState || other.hasRequiredState,
isRequired: isRequired || other.isRequired,
);
}