AfroMessage constructor
- AfroMessageConfig config, {
- Client? client,
Implementation
AfroMessage(
this.config, {
http.Client? client,
}) : _client = client ?? http.Client() {
if (config.apiKey.isEmpty) {
throw AfroMessageException('apiKey is required.');
}
}