AfroMessage constructor

AfroMessage(
  1. AfroMessageConfig config, {
  2. Client? client,
})

Implementation

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