UiElement constructor

const UiElement({
  1. required String elementId,
  2. String? testId,
  3. String? type,
  4. String? role,
  5. String? label,
  6. String? text,
  7. String? hint,
  8. List<String> options = const [],
  9. ElementLocator? suggestedLocator,
  10. String? locatorWarning,
  11. UiElementState state = const UiElementState(),
  12. UiBounds? bounds,
  13. List<String> actions = const [],
  14. List<UiElement> children = const [],
  15. Map<String, Object?> metadata = const {},
})

Implementation

const UiElement({
  required this.elementId,
  this.testId,
  this.type,
  this.role,
  this.label,
  this.text,
  this.hint,
  this.options = const [],
  this.suggestedLocator,
  this.locatorWarning,
  this.state = const UiElementState(),
  this.bounds,
  this.actions = const [],
  this.children = const [],
  this.metadata = const {},
});