afterFailure method

Future<PlaybookShot?> afterFailure()

Takes the shot of a failing step as it is, unless the run captures nothing.

Implementation

Future<PlaybookShot?> afterFailure() async {
  if (mode == PlaybookScreenshots.off) return null;
  return _bestEffort(PlaybookShotKind.failure);
}