toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  switch (index) {
    case _kHasCheckedStateIndex:
      return 'SemanticsFlag.hasCheckedState';
    case _kIsCheckedIndex:
      return 'SemanticsFlag.isChecked';
    case _kIsSelectedIndex:
      return 'SemanticsFlag.isSelected';
    case _kIsButtonIndex:
      return 'SemanticsFlag.isButton';
    case _kIsTextFieldIndex:
      return 'SemanticsFlag.isTextField';
    case _kIsFocusedIndex:
      return 'SemanticsFlag.isFocused';
    case _kHasEnabledStateIndex:
      return 'SemanticsFlag.hasEnabledState';
    case _kIsEnabledIndex:
      return 'SemanticsFlag.isEnabled';
    case _kIsInMutuallyExclusiveGroupIndex:
      return 'SemanticsFlag.isInMutuallyExclusiveGroup';
    case _kIsHeaderIndex:
      return 'SemanticsFlag.isHeader';
    case _kIsObscuredIndex:
      return 'SemanticsFlag.isObscured';
    case _kScopesRouteIndex:
      return 'SemanticsFlag.scopesRoute';
    case _kNamesRouteIndex:
      return 'SemanticsFlag.namesRoute';
    case _kIsHiddenIndex:
      return 'SemanticsFlag.isHidden';
    case _kIsImageIndex:
      return 'SemanticsFlag.isImage';
    case _kIsLiveRegionIndex:
      return 'SemanticsFlag.isLiveRegion';
    case _kHasToggledStateIndex:
      return 'SemanticsFlag.hasToggledState';
    case _kIsToggledIndex:
      return 'SemanticsFlag.isToggled';
    case _kHasImplicitScrollingIndex:
      return 'SemanticsFlag.hasImplicitScrolling';
  }
  return null;
}