flush method
Write any unsaved changes to permanent storage.
Call flush after a set value to ensure immediate sync with storage, otherwise the change may be updated after 1 second.
Throws
- An exception if it fails
Implementation
void flush() {
objectMethod(
_pointerId,
'SettingsService',
'flush',
);
}