call method

Future<Lcov> call()

Execute usecase

Implementation

Future<Lcov> call() async {
  try {
    final records = await getRecords();

    final lcov = Lcov(config: config, records: records);

    if (lcov.config.log) {
      Logger().log(lcov);
    }

    return lcov;
  } catch (e) {
    exit(AppErrorCodes.fatalError);
  }
}