getWidgetProp<T> method
Retrieves a specific property from the matched widget.
Use this method to get a property value directly from the widget for further processing or assertions.
Implementation
T getWidgetProp<T>(NamedWidgetProp<W, T> prop) {
final widget = selector.mapElementToWidget(element);
return prop.get(widget);
}