From 9de3b472f0567c6d485510e406d3e516e502c13d Mon Sep 17 00:00:00 2001 From: toanlm Date: Thu, 13 Jul 2023 10:12:58 +0700 Subject: [PATCH] Add attribute key --- lib/src/models/documents/attribute.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/models/documents/attribute.dart b/lib/src/models/documents/attribute.dart index 9eebe0cd..284cf580 100644 --- a/lib/src/models/documents/attribute.dart +++ b/lib/src/models/documents/attribute.dart @@ -112,6 +112,10 @@ class Attribute { static const ImageAttribute image = ImageAttribute(null); + static const FileAttribute file = FileAttribute(null); + + static const MentionAttribute mention = MentionAttribute(null); + static const VideoAttribute video = VideoAttribute(null); static final Set inlineKeys = { @@ -157,6 +161,8 @@ class Attribute { static final Set embedKeys = { Attribute.image.key, Attribute.video.key, + Attribute.file.key, + Attribute.mention.key, }; static const Attribute h1 = HeaderAttribute(level: 1);