hasOnTap method

WidgetMatcher<ListTile> hasOnTap(
  1. Function? value
)

Expects that onTap of ListTile equals (==) value.

Example usage:

spot<ListTile>().existsOnce().hasOnTap(() {});

Implementation

WidgetMatcher<ListTile> hasOnTap(Function? value) {
  return hasDiagnosticProp<Function>(
      'onTap', (it) => value == null ? it.isNull() : it.equals(value));
}