hasOnLongPress method

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

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

Example usage:

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

Implementation

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