sync method

Future<void> sync()

Implementation

Future<void> sync() async {
  if (_store.isEmpty) {
    await delete();
  } else if (isDirty) {
    await persist();
  }
}