hasOnLongPressWhere method

WidgetMatcher<ListTile> hasOnLongPressWhere(
  1. MatchProp<Function> match
)

Expects that onLongPress of ListTile matches the condition in match.

Example usage:

spot<ListTile>().existsOnce().hasOnLongPressWhere((it) => it.equals(() {}));

Implementation

WidgetMatcher<ListTile> hasOnLongPressWhere(MatchProp<Function> match) {
  return hasDiagnosticProp<Function>('onLongPress', match);
}