call method

Future<List<Record>> call()

Execute usercase

Implementation

Future<List<Record>> call() async {
  late List<Record> records;
  try {
    records = await Parser.parse(_file);
  } on FileSystemException catch (e) {
    print(AppConstants.fileSystemExceptionMessage);
    print(e);
  } catch (e) {
    rethrow;
  }

  return records;
}