validateKey method

void validateKey(
  1. String? key
)

Implementation

void validateKey(String? key) {
  if (key != null && key.isEmpty) {
    throw ArgumentError("API Key cannot empty or null");
  }
}