semantics method
Niku
semantics({
- bool container = false,
- bool explicitChildNodes = false,
- bool excludeSemantics = false,
- bool? enabled,
- bool? checked,
- bool? selected,
- bool? toggled,
- bool? button,
- bool? slider,
- bool? link,
- bool? header,
- bool? textField,
- bool? readOnly,
- bool? focusable,
- bool? focused,
- bool? inMutuallyExclusiveGroup,
- bool? obscured,
- bool? multiline,
- bool? scopesRoute,
- bool? namesRoute,
- bool? image,
- bool? liveRegion,
- int? maxValueLength,
- int? currentValueLength,
- String? label,
- String? value,
- String? increasedValue,
- String? decreasedValue,
- String? hint,
- String? onTapHint,
- String? onLongPressHint,
- TextDirection? textDirection,
- SemanticsSortKey? sortKey,
- SemanticsTag? tagForChildren,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- VoidCallback? onScrollLeft,
- VoidCallback? onScrollRight,
- VoidCallback? onScrollUp,
- VoidCallback? onScrollDown,
- VoidCallback? onIncrease,
- VoidCallback? onDecrease,
- VoidCallback? onCopy,
- VoidCallback? onCut,
- VoidCallback? onPaste,
- VoidCallback? onDismiss,
- MoveCursorHandler? onMoveCursorForwardByCharacter,
- MoveCursorHandler? onMoveCursorBackwardByCharacter,
- SetSelectionHandler? onSetSelection,
- VoidCallback? onDidGainAccessibilityFocus,
- VoidCallback? onDidLoseAccessibilityFocus,
- Map<
CustomSemanticsAction, VoidCallback> ? customSemanticsActions,
Add semantic to widget
Equivalent to
Semantics(
...params
)
Implementation
Niku semantics({
bool container = false,
bool explicitChildNodes = false,
bool excludeSemantics = false,
bool? enabled,
bool? checked,
bool? selected,
bool? toggled,
bool? button,
bool? slider,
bool? link,
bool? header,
bool? textField,
bool? readOnly,
bool? focusable,
bool? focused,
bool? inMutuallyExclusiveGroup,
bool? obscured,
bool? multiline,
bool? scopesRoute,
bool? namesRoute,
bool? hidden,
bool? image,
bool? liveRegion,
int? maxValueLength,
int? currentValueLength,
String? label,
String? value,
String? increasedValue,
String? decreasedValue,
String? hint,
String? onTapHint,
String? onLongPressHint,
TextDirection? textDirection,
SemanticsSortKey? sortKey,
SemanticsTag? tagForChildren,
VoidCallback? onTap,
VoidCallback? onLongPress,
VoidCallback? onScrollLeft,
VoidCallback? onScrollRight,
VoidCallback? onScrollUp,
VoidCallback? onScrollDown,
VoidCallback? onIncrease,
VoidCallback? onDecrease,
VoidCallback? onCopy,
VoidCallback? onCut,
VoidCallback? onPaste,
VoidCallback? onDismiss,
MoveCursorHandler? onMoveCursorForwardByCharacter,
MoveCursorHandler? onMoveCursorBackwardByCharacter,
SetSelectionHandler? onSetSelection,
VoidCallback? onDidGainAccessibilityFocus,
VoidCallback? onDidLoseAccessibilityFocus,
Map<CustomSemanticsAction, VoidCallback>? customSemanticsActions,
}) =>
Niku(
Semantics(
child: this._widget,
container: container,
explicitChildNodes: explicitChildNodes,
excludeSemantics: excludeSemantics,
enabled: enabled,
checked: checked,
selected: selected,
toggled: toggled,
button: button,
slider: slider,
link: link,
header: header,
textField: textField,
readOnly: readOnly,
focusable: focusable,
focused: focused,
inMutuallyExclusiveGroup: inMutuallyExclusiveGroup,
obscured: obscured,
multiline: multiline,
scopesRoute: scopesRoute,
namesRoute: namesRoute,
hidden: hidden,
image: image,
liveRegion: liveRegion,
maxValueLength: maxValueLength,
currentValueLength: currentValueLength,
label: label,
value: value,
increasedValue: increasedValue,
decreasedValue: decreasedValue,
hint: hint,
onTapHint: onTapHint,
onLongPressHint: onLongPressHint,
textDirection: textDirection,
sortKey: sortKey,
tagForChildren: tagForChildren,
onTap: onTap,
onLongPress: onLongPress,
onScrollLeft: onScrollLeft,
onScrollRight: onScrollRight,
onScrollUp: onScrollUp,
onScrollDown: onScrollDown,
onIncrease: onIncrease,
onDecrease: onDecrease,
onCopy: onCopy,
onCut: onCut,
onPaste: onPaste,
onDismiss: onDismiss,
onMoveCursorForwardByCharacter: onMoveCursorForwardByCharacter,
onMoveCursorBackwardByCharacter: onMoveCursorBackwardByCharacter,
onSetSelection: onSetSelection,
onDidGainAccessibilityFocus: onDidGainAccessibilityFocus,
onDidLoseAccessibilityFocus: onDidLoseAccessibilityFocus,
customSemanticsActions: customSemanticsActions,
),
);