From d3c024c7f56602a56f6d89e3cae1e5a9460d3049 Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Fri, 9 Jul 2021 10:39:27 +0200 Subject: [PATCH] make KdbxCustomIcon properties non-nullable. --- lib/src/kdbx_meta.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/kdbx_meta.dart b/lib/src/kdbx_meta.dart index 4d36108..07d475e 100644 --- a/lib/src/kdbx_meta.dart +++ b/lib/src/kdbx_meta.dart @@ -171,8 +171,8 @@ class KdbxMeta extends KdbxNode implements KdbxNodeContext { XmlElement(XmlName(KdbxXml.NODE_CUSTOM_ICONS)) ..children.addAll(customIcons.values.map( (e) => XmlUtils.createNode(KdbxXml.NODE_ICON, [ - XmlUtils.createTextNode(KdbxXml.NODE_UUID, e.uuid!.uuid), - XmlUtils.createTextNode(KdbxXml.NODE_DATA, base64.encode(e.data!)) + XmlUtils.createTextNode(KdbxXml.NODE_UUID, e.uuid.uuid), + XmlUtils.createTextNode(KdbxXml.NODE_DATA, base64.encode(e.data)) ]), )), ); @@ -222,11 +222,11 @@ class KdbxMeta extends KdbxNode implements KdbxNodeContext { } class KdbxCustomIcon { - KdbxCustomIcon({this.uuid, this.data}); + KdbxCustomIcon({required this.uuid, required this.data}); /// uuid of the icon, must be unique within each file. - final KdbxUuid? uuid; + final KdbxUuid uuid; /// Encoded png data of the image. will be base64 encoded into the kdbx file. - final Uint8List? data; + final Uint8List data; }