initWithAppkey method

Future<void> initWithAppkey(
  1. String appkey, {
  2. bool debugMode = false,
  3. bool autoLogin = false,
})

Implementation

Future<void> initWithAppkey(
  String appkey, {
  bool debugMode = false,
  bool autoLogin = false,
}) async {
  WidgetsFlutterBinding.ensureInitialized();
  final options = ChatOptions(
    appKey: appkey,
    debugMode: debugMode,
    autoLogin: autoLogin,
  );
  await Client.getInstance.init(options);
}