JsonSemantics constructor
JsonSemantics({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- AttributedString? attributedDecreasedValue,
- AttributedString? attributedHint,
- AttributedString? attributedIncreasedValue,
- AttributedString? attributedLabel,
- AttributedString? attributedValue,
- bool blockUserActions = false,
- bool? button,
- bool? checked,
- bool container = false,
- int? currentValueLength,
- Map<
CustomSemanticsAction, void Function()> ? customSemanticsActions, - String? decreasedValue,
- bool? enabled,
- bool excludeSemantics = false,
- bool? expanded,
- bool explicitChildNodes = false,
- bool? focusable,
- bool? focused,
- bool? header,
- String? hint,
- String? identifier,
- bool? image,
- bool? inMutuallyExclusiveGroup,
- String? increasedValue,
- bool? keyboardKey,
- String? label,
- bool? link,
- bool? liveRegion,
- int? maxValueLength,
- bool? mixed,
- bool? multiline,
- bool? namesRoute,
- bool? obscured,
- void onCopy()?,
- void onCut()?,
- void onDecrease()?,
- void onDidGainAccessibilityFocus()?,
- void onDidLoseAccessibilityFocus()?,
- void onDismiss()?,
- void onIncrease()?,
- void onLongPress()?,
- String? onLongPressHint,
- void onMoveCursorBackwardByCharacter()?,
- void onMoveCursorForwardByCharacter()?,
- void onPaste()?,
- void onScrollDown()?,
- void onScrollLeft()?,
- void onScrollRight()?,
- void onScrollUp()?,
- void onSetSelection()?,
- void onSetText()?,
- void onTap()?,
- String? onTapHint,
- bool? readOnly,
- bool? scopesRoute,
- bool? selected,
- bool? slider,
- dynamic sortKey = null,
- SemanticsTag? tagForChildren,
- TextDirection? textDirection,
- bool? textField,
- bool? toggled,
- String? tooltip,
- String? value,
- 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,
);