validateKey method

void validateKey(
  1. String key
)

Implementation

void validateKey(String key) {
  if (key.isEmpty) {
    throw ArgumentError("API Key cannot empty");
  }
}