values constant Null safety

Map<int, SemanticsFlag> const values

The possible semantics flags.

The map's key is the index of the flag and the value is the flag itself.

Implementation

static const Map<int, SemanticsFlag> values = <int, SemanticsFlag>{
  _kHasCheckedStateIndex: hasCheckedState,
  _kIsCheckedIndex: isChecked,
  _kIsSelectedIndex: isSelected,
  _kIsButtonIndex: isButton,
  _kIsTextFieldIndex: isTextField,
  _kIsFocusedIndex: isFocused,
  _kHasEnabledStateIndex: hasEnabledState,
  _kIsEnabledIndex: isEnabled,
  _kIsInMutuallyExclusiveGroupIndex: isInMutuallyExclusiveGroup,
  _kIsHeaderIndex: isHeader,
  _kIsObscuredIndex: isObscured,
  _kScopesRouteIndex: scopesRoute,
  _kNamesRouteIndex: namesRoute,
  _kIsHiddenIndex: isHidden,
  _kIsImageIndex: isImage,
  _kIsLiveRegionIndex: isLiveRegion,
  _kHasToggledStateIndex: hasToggledState,
  _kIsToggledIndex: isToggled,
  _kHasImplicitScrollingIndex: hasImplicitScrolling,
  _kIsMultilineIndex: isMultiline,
  _kIsReadOnlyIndex: isReadOnly,
  _kIsFocusableIndex: isFocusable,
  _kIsLinkIndex: isLink,
  _kIsSliderIndex: isSlider,
  _kIsKeyboardKeyIndex: isKeyboardKey,
  _kIsCheckStateMixedIndex: isCheckStateMixed,
};