call method

  1. @override
Future<Regulation?> call()
override

Implementation

@override
Future<Regulation?> call() async {
  var appId = await _establishmentById.currentId();
  if (appId == null) {
    return null;
  }
  return await _repository.getRegulation(appId: appId);
}