setConfig static method

void setConfig(
  1. String clientId, {
  2. String? userId = "",
  3. bool? sandboxMode = false,
  4. bool? multitaskMode = true,
  5. String? theme,
  6. String? language = "en",
  7. bool? isDebug = false,
  8. bool? showPermissionsPage = true,
  9. bool? showClearCache = true,
  10. bool? showAboutPage = true,
})

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}) {
  _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
  });
}