sync method
Implementation
Future<void> sync() async {
if (!isDirty) {
return;
}
if (isEmpty) {
await delete();
} else {
await persist();
}
}
Future<void> sync() async {
if (!isDirty) {
return;
}
if (isEmpty) {
await delete();
} else {
await persist();
}
}