block method

void block(
  1. String country
)

Blocks a country

Adds the given country to the blocked list, preventing any requests from this country. Logs the blocked country to the console.

Implementation

void block(String country) {
  blocked.add(country);
  print("[dartcore] Blocked Country: $country");
}