getProperties method

  1. @override
Map<String, dynamic> getProperties({
  1. Element? ancestor,
})
override

Implementation

@override
Map<String, dynamic> getProperties({Element? ancestor}) {
  Map<String, dynamic> properties = super.getProperties(ancestor: ancestor);

  AppBar appBar = element.widget as AppBar;
  properties[WidgetProperty.className.name] =
      RanorexSupportedClassName.appBar;

  if (appBar.title is Text) {
    properties[WidgetProperty.text.name] = (appBar.title as Text).data ?? '';
  }
  return properties;
}