getProperties method
Implementation
@override
Map<String, dynamic> getProperties({Element? ancestor}) {
Map<String, dynamic> properties = super.getProperties(ancestor: ancestor);
String? className;
// LinearProgressIndicator
if (element.widget is LinearProgressIndicator) {
LinearProgressIndicator linearProgressIndicator =
element.widget as LinearProgressIndicator;
className = RanorexSupportedClassName.linearProgressIndicator;
properties[WidgetProperty.minValue.name] = "0.0";
properties[WidgetProperty.maxValue.name] = "1.0";
properties[WidgetProperty.value.name] =
linearProgressIndicator.value.toString();
}
// CircularProgressIndicator
if (element.widget is CircularProgressIndicator) {
CircularProgressIndicator circularProgressIndicator =
element.widget as CircularProgressIndicator;
className = RanorexSupportedClassName.circularProgressIndicator;
properties[WidgetProperty.minValue.name] = "0.0";
properties[WidgetProperty.maxValue.name] = "1.0";
properties[WidgetProperty.value.name] =
circularProgressIndicator.value.toString();
}
properties[WidgetProperty.className.name] = className;
properties[WidgetProperty.accessibilityLabel.name] = element
.findAncestorWidgetOfExactType<Semantics>()
?.properties
.label ??
'';
return properties;
}