semantics method

Niku semantics({
  1. bool container = false,
  2. bool explicitChildNodes = false,
  3. bool excludeSemantics = false,
  4. bool? enabled,
  5. bool? checked,
  6. bool? selected,
  7. bool? toggled,
  8. bool? button,
  9. bool? slider,
  10. bool? link,
  11. bool? header,
  12. bool? textField,
  13. bool? readOnly,
  14. bool? focusable,
  15. bool? focused,
  16. bool? inMutuallyExclusiveGroup,
  17. bool? obscured,
  18. bool? multiline,
  19. bool? scopesRoute,
  20. bool? namesRoute,
  21. bool? hidden,
  22. bool? image,
  23. bool? liveRegion,
  24. int? maxValueLength,
  25. int? currentValueLength,
  26. String? label,
  27. String? value,
  28. String? increasedValue,
  29. String? decreasedValue,
  30. String? hint,
  31. String? onTapHint,
  32. String? onLongPressHint,
  33. TextDirection? textDirection,
  34. SemanticsSortKey? sortKey,
  35. SemanticsTag? tagForChildren,
  36. VoidCallback? onTap,
  37. VoidCallback? onLongPress,
  38. VoidCallback? onScrollLeft,
  39. VoidCallback? onScrollRight,
  40. VoidCallback? onScrollUp,
  41. VoidCallback? onScrollDown,
  42. VoidCallback? onIncrease,
  43. VoidCallback? onDecrease,
  44. VoidCallback? onCopy,
  45. VoidCallback? onCut,
  46. VoidCallback? onPaste,
  47. VoidCallback? onDismiss,
  48. MoveCursorHandler? onMoveCursorForwardByCharacter,
  49. MoveCursorHandler? onMoveCursorBackwardByCharacter,
  50. SetSelectionHandler? onSetSelection,
  51. VoidCallback? onDidGainAccessibilityFocus,
  52. VoidCallback? onDidLoseAccessibilityFocus,
  53. 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,
      ),
    );