If you are doing this, you should probably call setDark
with prefersDarkMode() or some initial value immediately before this,
so the current dark mode is set to user's preferred mode.
Note if persist is true when initializing,
subsequence setDark calls will still persist the value.
Clears the persisted dark mode preference
If you are doing this, you should probably call
setDark
withprefersDarkMode()
or some initial value immediately before this, so the current dark mode is set to user's preferred mode.Note if
persist
istrue
when initializing, subsequencesetDark
calls will still persist the value.