show static method
Future<void>
show(
- BuildContext context, {
- required TickkiChat client,
- required String visitorId,
- String? name,
- String? email,
- String? phone,
- 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,
),
),
);
}