JsonSemantics constructor

JsonSemantics({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. AttributedString? attributedDecreasedValue,
  4. AttributedString? attributedHint,
  5. AttributedString? attributedIncreasedValue,
  6. AttributedString? attributedLabel,
  7. AttributedString? attributedValue,
  8. bool blockUserActions = false,
  9. bool? button,
  10. bool? checked,
  11. bool container = false,
  12. int? currentValueLength,
  13. Map<CustomSemanticsAction, void Function()>? customSemanticsActions,
  14. String? decreasedValue,
  15. bool? enabled,
  16. bool excludeSemantics = false,
  17. bool? expanded,
  18. bool explicitChildNodes = false,
  19. bool? focusable,
  20. bool? focused,
  21. bool? header,
  22. bool? hidden,
  23. String? hint,
  24. String? identifier,
  25. bool? image,
  26. bool? inMutuallyExclusiveGroup,
  27. String? increasedValue,
  28. bool? keyboardKey,
  29. String? label,
  30. bool? link,
  31. bool? liveRegion,
  32. int? maxValueLength,
  33. bool? mixed,
  34. bool? multiline,
  35. bool? namesRoute,
  36. bool? obscured,
  37. void onCopy()?,
  38. void onCut()?,
  39. void onDecrease()?,
  40. void onDidGainAccessibilityFocus()?,
  41. void onDidLoseAccessibilityFocus()?,
  42. void onDismiss()?,
  43. void onIncrease()?,
  44. void onLongPress()?,
  45. String? onLongPressHint,
  46. void onMoveCursorBackwardByCharacter(
    1. bool
    )?,
  47. void onMoveCursorForwardByCharacter(
    1. bool
    )?,
  48. void onPaste()?,
  49. void onScrollDown()?,
  50. void onScrollLeft()?,
  51. void onScrollRight()?,
  52. void onScrollUp()?,
  53. void onSetSelection(
    1. TextSelection
    )?,
  54. void onSetText(
    1. String
    )?,
  55. void onTap()?,
  56. String? onTapHint,
  57. bool? readOnly,
  58. bool? scopesRoute,
  59. bool? selected,
  60. bool? slider,
  61. dynamic sortKey = null,
  62. SemanticsTag? tagForChildren,
  63. TextDirection? textDirection,
  64. bool? textField,
  65. bool? toggled,
  66. String? tooltip,
  67. String? value,
  68. JsonWidgetData? child,
})

Implementation

JsonSemantics({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.attributedDecreasedValue,
  this.attributedHint,
  this.attributedIncreasedValue,
  this.attributedLabel,
  this.attributedValue,
  this.blockUserActions = false,
  this.button,
  this.checked,
  this.container = false,
  this.currentValueLength,
  this.customSemanticsActions,
  this.decreasedValue,
  this.enabled,
  this.excludeSemantics = false,
  this.expanded,
  this.explicitChildNodes = false,
  this.focusable,
  this.focused,
  this.header,
  this.hidden,
  this.hint,
  this.identifier,
  this.image,
  this.inMutuallyExclusiveGroup,
  this.increasedValue,
  this.keyboardKey,
  this.label,
  this.link,
  this.liveRegion,
  this.maxValueLength,
  this.mixed,
  this.multiline,
  this.namesRoute,
  this.obscured,
  this.onCopy,
  this.onCut,
  this.onDecrease,
  this.onDidGainAccessibilityFocus,
  this.onDidLoseAccessibilityFocus,
  this.onDismiss,
  this.onIncrease,
  this.onLongPress,
  this.onLongPressHint,
  this.onMoveCursorBackwardByCharacter,
  this.onMoveCursorForwardByCharacter,
  this.onPaste,
  this.onScrollDown,
  this.onScrollLeft,
  this.onScrollRight,
  this.onScrollUp,
  this.onSetSelection,
  this.onSetText,
  this.onTap,
  this.onTapHint,
  this.readOnly,
  this.scopesRoute,
  this.selected,
  this.slider,
  this.sortKey = null,
  this.tagForChildren,
  this.textDirection,
  this.textField,
  this.toggled,
  this.tooltip,
  this.value,
  this.child,
}) : super(
        jsonWidgetArgs: JsonSemanticsBuilderModel.fromDynamic(
          {
            'attributedDecreasedValue': attributedDecreasedValue,
            'attributedHint': attributedHint,
            'attributedIncreasedValue': attributedIncreasedValue,
            'attributedLabel': attributedLabel,
            'attributedValue': attributedValue,
            'blockUserActions': blockUserActions,
            'button': button,
            'checked': checked,
            'container': container,
            'currentValueLength': currentValueLength,
            'customSemanticsActions': customSemanticsActions,
            'decreasedValue': decreasedValue,
            'enabled': enabled,
            'excludeSemantics': excludeSemantics,
            'expanded': expanded,
            'explicitChildNodes': explicitChildNodes,
            'focusable': focusable,
            'focused': focused,
            'header': header,
            'hidden': hidden,
            'hint': hint,
            'identifier': identifier,
            'image': image,
            'inMutuallyExclusiveGroup': inMutuallyExclusiveGroup,
            'increasedValue': increasedValue,
            'keyboardKey': keyboardKey,
            'label': label,
            'link': link,
            'liveRegion': liveRegion,
            'maxValueLength': maxValueLength,
            'mixed': mixed,
            'multiline': multiline,
            'namesRoute': namesRoute,
            'obscured': obscured,
            'onCopy': onCopy,
            'onCut': onCut,
            'onDecrease': onDecrease,
            'onDidGainAccessibilityFocus': onDidGainAccessibilityFocus,
            'onDidLoseAccessibilityFocus': onDidLoseAccessibilityFocus,
            'onDismiss': onDismiss,
            'onIncrease': onIncrease,
            'onLongPress': onLongPress,
            'onLongPressHint': onLongPressHint,
            'onMoveCursorBackwardByCharacter':
                onMoveCursorBackwardByCharacter,
            'onMoveCursorForwardByCharacter': onMoveCursorForwardByCharacter,
            'onPaste': onPaste,
            'onScrollDown': onScrollDown,
            'onScrollLeft': onScrollLeft,
            'onScrollRight': onScrollRight,
            'onScrollUp': onScrollUp,
            'onSetSelection': onSetSelection,
            'onSetText': onSetText,
            'onTap': onTap,
            'onTapHint': onTapHint,
            'readOnly': readOnly,
            'scopesRoute': scopesRoute,
            'selected': selected,
            'slider': slider,
            'sortKey': sortKey,
            'tagForChildren': tagForChildren,
            'textDirection': textDirection,
            'textField': textField,
            'toggled': toggled,
            'tooltip': tooltip,
            'value': value,
            'child': child,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonSemanticsBuilder(
          args: JsonSemanticsBuilderModel.fromDynamic(
            {
              'attributedDecreasedValue': attributedDecreasedValue,
              'attributedHint': attributedHint,
              'attributedIncreasedValue': attributedIncreasedValue,
              'attributedLabel': attributedLabel,
              'attributedValue': attributedValue,
              'blockUserActions': blockUserActions,
              'button': button,
              'checked': checked,
              'container': container,
              'currentValueLength': currentValueLength,
              'customSemanticsActions': customSemanticsActions,
              'decreasedValue': decreasedValue,
              'enabled': enabled,
              'excludeSemantics': excludeSemantics,
              'expanded': expanded,
              'explicitChildNodes': explicitChildNodes,
              'focusable': focusable,
              'focused': focused,
              'header': header,
              'hidden': hidden,
              'hint': hint,
              'identifier': identifier,
              'image': image,
              'inMutuallyExclusiveGroup': inMutuallyExclusiveGroup,
              'increasedValue': increasedValue,
              'keyboardKey': keyboardKey,
              'label': label,
              'link': link,
              'liveRegion': liveRegion,
              'maxValueLength': maxValueLength,
              'mixed': mixed,
              'multiline': multiline,
              'namesRoute': namesRoute,
              'obscured': obscured,
              'onCopy': onCopy,
              'onCut': onCut,
              'onDecrease': onDecrease,
              'onDidGainAccessibilityFocus': onDidGainAccessibilityFocus,
              'onDidLoseAccessibilityFocus': onDidLoseAccessibilityFocus,
              'onDismiss': onDismiss,
              'onIncrease': onIncrease,
              'onLongPress': onLongPress,
              'onLongPressHint': onLongPressHint,
              'onMoveCursorBackwardByCharacter':
                  onMoveCursorBackwardByCharacter,
              'onMoveCursorForwardByCharacter':
                  onMoveCursorForwardByCharacter,
              'onPaste': onPaste,
              'onScrollDown': onScrollDown,
              'onScrollLeft': onScrollLeft,
              'onScrollRight': onScrollRight,
              'onScrollUp': onScrollUp,
              'onSetSelection': onSetSelection,
              'onSetText': onSetText,
              'onTap': onTap,
              'onTapHint': onTapHint,
              'readOnly': readOnly,
              'scopesRoute': scopesRoute,
              'selected': selected,
              'slider': slider,
              'sortKey': sortKey,
              'tagForChildren': tagForChildren,
              'textDirection': textDirection,
              'textField': textField,
              'toggled': toggled,
              'tooltip': tooltip,
              'value': value,
              'child': child,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonSemanticsBuilder.kType,
      );