call method

  1. @override
Future<Estabelecimento?> call({
  1. String? id,
})
override

Implementation

@override
Future<Estabelecimento?> call({String? id}) async {
  id ??= _config.appId;
  await _storageService.setData("currentId", id, serialize: false);
  if (id == null) {
    return null;
  }
  return await _repository.findById(id);
}