syncSettings method

  1. @override
void syncSettings()
override

Re-read settings from the backing store.

May be a no-op on some platforms.

Implementation

@override
void syncSettings() {
  try {
    String contents = _file.readAsStringSync();
    if (contents.isEmpty) contents = '{}';
    _map = jsonDecode(contents);
  } catch (_) {
    _map = {};
  }
}