refresh method

Future<void> refresh()

Refreshes the denylist from the configured source.

Implementation

Future<void> refresh() async {
  final path = _config.denylistPath;
  if (path == null || path.isEmpty) return;

  if (_isUrl(path)) {
    await loadFromUrl(path);
  } else {
    await loadFromPath(path);
  }
}