SemanticsFlags constructor

SemanticsFlags({
  1. CheckedState isChecked = CheckedState.none,
  2. Tristate isSelected = Tristate.none,
  3. Tristate isEnabled = Tristate.none,
  4. Tristate isToggled = Tristate.none,
  5. Tristate isExpanded = Tristate.none,
  6. Tristate isRequired = Tristate.none,
  7. Tristate isFocused = Tristate.none,
  8. bool isButton = false,
  9. bool isTextField = false,
  10. bool isInMutuallyExclusiveGroup = false,
  11. bool isHeader = false,
  12. bool isObscured = false,
  13. bool scopesRoute = false,
  14. bool namesRoute = false,
  15. bool isHidden = false,
  16. bool isImage = false,
  17. bool isLiveRegion = false,
  18. bool hasImplicitScrolling = false,
  19. bool isMultiline = false,
  20. bool isReadOnly = false,
  21. bool isLink = false,
  22. bool isSlider = false,
  23. bool isKeyboardKey = false,
})

Creates a set of semantics flags that describe various states of a widget. All flags default to false unless specified.

Implementation

SemanticsFlags({
  this.isChecked = CheckedState.none,
  this.isSelected = Tristate.none,
  this.isEnabled = Tristate.none,
  this.isToggled = Tristate.none,
  this.isExpanded = Tristate.none,
  this.isRequired = Tristate.none,
  this.isFocused = Tristate.none,
  this.isButton = false,
  this.isTextField = 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.hasImplicitScrolling = false,
  this.isMultiline = false,
  this.isReadOnly = false,
  this.isLink = false,
  this.isSlider = false,
  this.isKeyboardKey = false,
}) {
  _initSemanticsFlags(
    this,
    isChecked.value,
    isSelected.value,
    isEnabled.value,
    isToggled.value,
    isExpanded.value,
    isRequired.value,
    isFocused.value,
    isButton,
    isTextField,
    isInMutuallyExclusiveGroup,
    isHeader,
    isObscured,
    scopesRoute,
    namesRoute,
    isHidden,
    isImage,
    isLiveRegion,
    hasImplicitScrolling,
    isMultiline,
    isReadOnly,
    isLink,
    isSlider,
    isKeyboardKey,
  );
}