connect method

Future<void> connect()

Mark the user as connected, Call this method if you did not connect while initializing startChatProviders or when resuming from background state. The user will also stop receiving push notifications for new messages.

Implementation

Future<void> connect() async {
  try {
    await _channel.invokeMethod('chat_connect');
  } catch (e) {
    print(e);
  }
}