AXNode constructor

AXNode({
  1. String? role,
  2. String? name,
  3. Object? value,
  4. String? description,
  5. String? keyShortcuts,
  6. String? roleDescription,
  7. String? valueText,
  8. bool? disabled,
  9. bool? expanded,
  10. bool? focused,
  11. bool? modal,
  12. bool? multiLine,
  13. bool? multiSelectable,
  14. bool? readonly,
  15. bool? required,
  16. bool? selected,
  17. TriState? checked,
  18. TriState? pressed,
  19. num? level,
  20. num? valueMin,
  21. num? valueMax,
  22. String? autocomplete,
  23. String? hasPopup,
  24. String? invalid,
  25. String? orientation,
  26. List<AXNode>? children,
})

Implementation

AXNode(
    {String? role,
    String? name,
    Object? value,
    String? description,
    String? keyShortcuts,
    String? roleDescription,
    String? valueText,
    bool? disabled,
    bool? expanded,
    bool? focused,
    bool? modal,
    bool? multiLine,
    bool? multiSelectable,
    bool? readonly,
    bool? required,
    bool? selected,
    TriState? checked,
    TriState? pressed,
    num? level,
    num? valueMin,
    num? valueMax,
    String? autocomplete,
    String? hasPopup,
    String? invalid,
    String? orientation,
    List<AXNode>? children})
    : children = children ?? <AXNode>[],
      _properties = {
        'role': role,
        'name': name,
        'value': value,
        'description': description,
        'keyShortcuts': keyShortcuts,
        'roleDescription': roleDescription,
        'valueText': valueText,
        'disabled': disabled,
        'expanded': expanded,
        'focused': focused,
        'modal': modal,
        'multiLine': multiLine,
        'multiSelectable': multiSelectable,
        'readonly': readonly,
        'required': required,
        'selected': selected,
        'checked': checked,
        'pressed': pressed,
        'level': level,
        'valueMin': valueMin,
        'valueMax': valueMax,
        'autocomplete': autocomplete,
        'hasPopup': hasPopup,
        'invalid': invalid,
        'orientation': orientation,
        'children': children,
      }..removeWhere((k, v) => v == null);