show static method

Future<void> show(
  1. BuildContext context, {
  2. required TickkiChat client,
  3. required String visitorId,
  4. String? name,
  5. String? email,
  6. String? phone,
  7. TickkiChatStrings strings = const TickkiChatStrings(),
})

Open the chat as a full-screen modal route. Returns when the screen is dismissed.

Implementation

static Future<void> show(
  BuildContext context, {
  required TickkiChat client,
  required String visitorId,
  String? name,
  String? email,
  String? phone,
  TickkiChatStrings strings = const TickkiChatStrings(),
}) {
  return Navigator.of(context, rootNavigator: true).push(
    MaterialPageRoute(
      fullscreenDialog: true,
      builder: (_) => TickkiChatWidget(
        client: client,
        visitorId: visitorId,
        name: name,
        email: email,
        phone: phone,
        strings: strings,
      ),
    ),
  );
}