SemanticsFlags constructor
- bool hasCheckedState = false,
- bool isChecked = false,
- bool isSelected = false,
- bool isButton = false,
- bool isTextField = false,
- bool isFocused = false,
- bool hasEnabledState = false,
- bool isEnabled = false,
- bool isInMutuallyExclusiveGroup = false,
- bool isHeader = false,
- bool isObscured = false,
- bool scopesRoute = false,
- bool namesRoute = false,
- bool isHidden = false,
- bool isImage = false,
- bool isLiveRegion = false,
- bool hasToggledState = false,
- bool isToggled = false,
- bool hasImplicitScrolling = false,
- bool isMultiline = false,
- bool isReadOnly = false,
- bool isFocusable = false,
- bool isLink = false,
- bool isSlider = false,
- bool isKeyboardKey = false,
- bool isCheckStateMixed = false,
- bool hasExpandedState = false,
- bool isExpanded = false,
- bool hasSelectedState = false,
- bool hasRequiredState = false,
- bool isRequired = false,
Creates a set of semantics flags that describe various states of a widget.
All flags default to false
unless specified.
Implementation
SemanticsFlags({
this.hasCheckedState = false,
this.isChecked = false,
this.isSelected = false,
this.isButton = false,
this.isTextField = false,
this.isFocused = false,
this.hasEnabledState = false,
this.isEnabled = false,
this.isInMutuallyExclusiveGroup = false,
this.isHeader = false,
this.isObscured = false,
this.scopesRoute = false,
this.namesRoute = false,
this.isHidden = false,
this.isImage = false,
this.isLiveRegion = false,
this.hasToggledState = false,
this.isToggled = false,
this.hasImplicitScrolling = false,
this.isMultiline = false,
this.isReadOnly = false,
this.isFocusable = false,
this.isLink = false,
this.isSlider = false,
this.isKeyboardKey = false,
this.isCheckStateMixed = false,
this.hasExpandedState = false,
this.isExpanded = false,
this.hasSelectedState = false,
this.hasRequiredState = false,
this.isRequired = false,
}) {
_initSemanticsFlags(
this,
hasCheckedState,
isChecked,
isSelected,
isButton,
isTextField,
isFocused,
hasEnabledState,
isEnabled,
isInMutuallyExclusiveGroup,
isHeader,
isObscured,
scopesRoute,
namesRoute,
isHidden,
isImage,
isLiveRegion,
hasToggledState,
isToggled,
hasImplicitScrolling,
isMultiline,
isReadOnly,
isFocusable,
isLink,
isSlider,
isKeyboardKey,
isCheckStateMixed,
hasExpandedState,
isExpanded,
hasSelectedState,
hasRequiredState,
isRequired,
);
}