Browse Source

add helper getter for isDirty

pull/3/head
Herbert Poul 4 years ago
parent
commit
a606354c11
  1. 1
      lib/src/kdbx_file.dart

1
lib/src/kdbx_file.dart

@ -40,6 +40,7 @@ class KdbxFile {
final KdbxHeader header; final KdbxHeader header;
final KdbxBody body; final KdbxBody body;
final Set<KdbxObject> dirtyObjects = {}; final Set<KdbxObject> dirtyObjects = {};
bool get isDirty => dirtyObjects.isNotEmpty;
final StreamController<Set<KdbxObject>> _dirtyObjectsChanged = final StreamController<Set<KdbxObject>> _dirtyObjectsChanged =
StreamController<Set<KdbxObject>>.broadcast(); StreamController<Set<KdbxObject>>.broadcast();

Loading…
Cancel
Save