SemanticsFlags constructor

SemanticsFlags({
  1. bool hasCheckedState = false,
  2. bool isChecked = false,
  3. bool isSelected = false,
  4. bool isButton = false,
  5. bool isTextField = false,
  6. bool isFocused = false,
  7. bool hasEnabledState = false,
  8. bool isEnabled = false,
  9. bool isInMutuallyExclusiveGroup = false,
  10. bool isHeader = false,
  11. bool isObscured = false,
  12. bool scopesRoute = false,
  13. bool namesRoute = false,
  14. bool isHidden = false,
  15. bool isImage = false,
  16. bool isLiveRegion = false,
  17. bool hasToggledState = false,
  18. bool isToggled = false,
  19. bool hasImplicitScrolling = false,
  20. bool isMultiline = false,
  21. bool isReadOnly = false,
  22. bool isFocusable = false,
  23. bool isLink = false,
  24. bool isSlider = false,
  25. bool isKeyboardKey = false,
  26. bool isCheckStateMixed = false,
  27. bool hasExpandedState = false,
  28. bool isExpanded = false,
  29. bool hasSelectedState = false,
  30. bool hasRequiredState = false,
  31. 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,
  );
}