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