open static method

Future<void> open(
  1. BuildContext context, {
  2. String? conversationId,
  3. bool fullscreenDialog = true,
})

Pushes the chat screen as a full-screen dialog route.

Implementation

static Future<void> open(BuildContext context, {String? conversationId, bool fullscreenDialog = true}) async {
  final sdk = instance;
  final nav = Navigator.of(context, rootNavigator: true);
  sdk._openedNavigator = nav;
  await nav.push<void>(
    MaterialPageRoute<void>(
      fullscreenDialog: fullscreenDialog,
      builder: (_) => HatangChatScreen(conversationId: conversationId),
    ),
  );
}