added edit bookmark capabilities

This commit is contained in:
2026-01-12 18:27:19 +01:00
parent 885e638265
commit 0309678650
4 changed files with 76 additions and 12 deletions

View File

@@ -32,4 +32,14 @@ class Bookmark {
'description': description,
'createdAt': createdAt,
};
Bookmark copyWith({String? link, String? name, String? description}) {
return Bookmark(
collectionId: collectionId,
name: name ?? this.name,
link: link ?? this.link,
description: description ?? this.description,
createdAt: createdAt,
);
}
}