From 65ed1def9f28b92c61a1fac2c22b0944bde6b815 Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Sun, 24 May 2020 13:39:11 +0200 Subject: [PATCH] add breadcrumbs getter for Group --- lib/src/kdbx_group.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/kdbx_group.dart b/lib/src/kdbx_group.dart index 95be33b..319b2e6 100644 --- a/lib/src/kdbx_group.dart +++ b/lib/src/kdbx_group.dart @@ -92,6 +92,9 @@ class KdbxGroup extends KdbxObject { isDirty = true; } + /// returns all parents recursively including this group. + List get breadcrumbs => [...?parent?.breadcrumbs, this]; + StringNode get name => StringNode(this, 'Name'); // String get name => text('Name') ?? '';