From a606354c11c13950bd591a470c994397b1a04705 Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Sat, 29 Aug 2020 15:04:07 +0200 Subject: [PATCH] add helper getter for isDirty --- lib/src/kdbx_file.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/kdbx_file.dart b/lib/src/kdbx_file.dart index 24f2c8a..01c2520 100644 --- a/lib/src/kdbx_file.dart +++ b/lib/src/kdbx_file.dart @@ -40,6 +40,7 @@ class KdbxFile { final KdbxHeader header; final KdbxBody body; final Set dirtyObjects = {}; + bool get isDirty => dirtyObjects.isNotEmpty; final StreamController> _dirtyObjectsChanged = StreamController>.broadcast();