requireConnection static method
Implementation
static ApiConnection requireConnection(String key) {
final connection = _connections[key.trim()];
if (connection == null) {
throw StateError(
'API connection "$key" is not configured. '
'Call the generated package configure method before use.',
);
}
return connection;
}