persist method
Implementation
Future<void> persist() async {
if (isEmpty) {
logger.log('Canceled persist. Empty store.');
return;
}
if (!isDirty) {
logger.log('Canceled persist. Clean store.');
return;
}
await logger.measure('Persist', () => config.persist(_store));
isDirty = false;
}