onThemeChanged

fun onThemeChanged(handler: EventCallback<Theme>): ERROR CLASS: Symbol not found for js.promise.Promise<{tauri/apps/api/UnlistenFn=} kotlin/Function0<kotlin/Unit>>(source)

Listen to the system theme change.