handle method

  1. @override
Future<bool> handle(
  1. Report report,
  2. BuildContext? context
)
override

Method called when report has been accepted by user

Implementation

@override
Future<bool> handle(Report report, BuildContext? context) async {
  _openedFile = fileSupplier != null ? fileSupplier!(report) : file;
  try {
    if (!_fileValidated) {
      _fileValidationResult = await _checkFile();
      _fileValidated = true;
    }
    return await _processReport(report);
  } catch (exc, stackTrace) {
    _printLog('Exception occurred: $exc stack: $stackTrace');
    return false;
  }
}