getElementProp<T> method
Retrieves a specific property from the matched widget's element.
Use this method to get a property value directly from the element of the widget for further processing or assertions.
Implementation
T getElementProp<T>(NamedElementProp<T> prop) {
return prop.get(element);
}