CometChat constructor

CometChat(
  1. String appId, {
  2. @Deprecated('The authKey is deprecated due to security concerns. Please use [otherMethod] instead.') String? authKey,
  3. String region = 'us',
})

Constructor for creating CometChat object appId refers to your CometChat App ID. region The region where the app was created.

Implementation

CometChat(
  this.appId, {
  @Deprecated(
      'The authKey is deprecated due to security concerns. Please use [otherMethod] instead.')
  this.authKey,
  this.region = 'us',
});