call method

Future<SecurityResult<void>> call({
  1. required bool enable,
})

Implementation

Future<SecurityResult<void>> call({required bool enable}) {
  return enable
      ? _repository.enableProtection()
      : _repository.disableProtection();
}