AugnitoWebClient constructor

AugnitoWebClient(
  1. String _speechURL, {
  2. dynamic onMessage(
    1. dynamic
    )?,
  3. dynamic onError(
    1. dynamic
    )?,
  4. Future<void> onDisconnected()?,
  5. dynamic enableLogs = false,
})

Implementation

AugnitoWebClient(this._speechURL,
    {Function(dynamic)? onMessage,
    Function(dynamic)? onError,
    Future<void> Function()? onDisconnected,
    enableLogs = false}) {
  _onMessage = onMessage;
  _onError = onError;
  _onDisconnected = onDisconnected;
  _logger = enableLogs ? AugnitoPrintLogger() : null;
}