bootForWeb static method
Future<bool?>
bootForWeb({
- required String pluginKey,
- String? memberId,
- String? email,
- String? name,
- String? mobileNumber,
- String? avatarUrl,
- String? customLauncherSelector,
- bool? hideChannelButtonOnBoot,
- int? zIndex,
- Language? language,
- bool? trackDefaultEvent,
- bool? trackUtmSource,
- bool? unsubscribeEmail,
- bool? unsubscribeTexting,
- String? memberHash,
- bool? hidePopup,
- Appearance? appearance,
Implementation
static Future<bool?> bootForWeb({
required String pluginKey,
String? memberId,
String? email,
String? name,
String? mobileNumber,
String? avatarUrl,
String? customLauncherSelector,
bool? hideChannelButtonOnBoot,
int? zIndex,
Language? language,
bool? trackDefaultEvent,
bool? trackUtmSource,
bool? unsubscribeEmail,
bool? unsubscribeTexting,
String? memberHash,
bool? hidePopup,
Appearance? appearance,
}) {
Map<String, dynamic> config = {
'pluginKey': pluginKey,
if (memberId != null) 'memberId': memberId,
if (email != null) 'email': email,
if (name != null) 'name': name,
if (mobileNumber != null) 'mobileNumber': mobileNumber,
if (avatarUrl != null) 'avatarUrl': avatarUrl,
if (customLauncherSelector != null)
'customLauncherSelector': customLauncherSelector,
if (hideChannelButtonOnBoot != null)
'hideChannelButtonOnBoot': hideChannelButtonOnBoot,
if (zIndex != null) 'zIndex': zIndex,
if (language != null) 'language': language.value,
if (trackDefaultEvent != null) 'trackDefaultEvent': trackDefaultEvent,
if (trackUtmSource != null) 'trackUtmSource': trackUtmSource,
if (unsubscribeEmail != null) 'unsubscribeEmail': unsubscribeEmail,
if (unsubscribeTexting != null) 'unsubscribeTexting': unsubscribeTexting,
if (memberHash != null) 'memberHash': memberHash,
if (hidePopup != null) 'hidePopup': hidePopup,
if (appearance != null) 'appearance': appearance.value,
};
return ChannelTalkFlutterPlatform.instance.boot(config);
}