setConfig static method
void
setConfig(})
Implementation
static void setConfig(String clientId,
{String? userId = "",
bool? sandboxMode = false,
bool? multitaskMode = true,
String? theme,
String? language = "en",
bool? isDebug = false,
bool? showPermissionsPage = true,
bool? showClearCache = true,
bool? showAboutPage = true,
Map<String, String>? splashScreenOptions}) {
_channel.invokeMethod("setConfig", {
'client_id': clientId,
'user_id': userId,
'sandbox_mode': sandboxMode,
'multitask_mode': multitaskMode,
'theme': theme == 'dark' || theme == 'light' ? theme : 'system',
'language': language,
'is_debug': isDebug,
'show_permissions_page': showPermissionsPage,
'show_clear_cache': showClearCache,
'show_about_page': showAboutPage,
'splash_screen_options': {
'light_progress_indicator': splashScreenOptions?['light_progress_indicator'],
'dark_progress_indicator': splashScreenOptions?['dark_progress_indicator'],
'light_progress_track': splashScreenOptions?['light_progress_track'],
'dark_progress_track': splashScreenOptions?['dark_progress_track'],
'light_background': splashScreenOptions?['light_background'],
'dark_background': splashScreenOptions?['dark_background']
}
});
}