containsScreenShot method

bool containsScreenShot()

containsScreenShot returns true if at least one of the events is a screenshot.

Implementation

bool containsScreenShot() {
  return (events
      .any((element) => element.type == FlutsterTestEventType.screenShot));
}