elementProp<T> function

NamedElementProp<T> elementProp<T>(
  1. String name,
  2. T get(
    1. Element element
    )
)

A property of an Element with a name that can be extracted with get.

Use with WidgetMatcherExtensions.hasElementProp or SelectorQueries.whereElementProp.

Implementation

NamedElementProp<T> elementProp<T>(
  String name,
  T Function(Element element) get,
) {
  return NamedElementProp._(name: name, get: get);
}