Add attribute key

pull/1326/head
toanlm 2 years ago
parent 923bd1bf3e
commit 9de3b472f0
  1. 6
      lib/src/models/documents/attribute.dart

@ -112,6 +112,10 @@ class Attribute<T> {
static const ImageAttribute image = ImageAttribute(null); 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 const VideoAttribute video = VideoAttribute(null);
static final Set<String> inlineKeys = { static final Set<String> inlineKeys = {
@ -157,6 +161,8 @@ class Attribute<T> {
static final Set<String> embedKeys = { static final Set<String> embedKeys = {
Attribute.image.key, Attribute.image.key,
Attribute.video.key, Attribute.video.key,
Attribute.file.key,
Attribute.mention.key,
}; };
static const Attribute<int?> h1 = HeaderAttribute(level: 1); static const Attribute<int?> h1 = HeaderAttribute(level: 1);

Loading…
Cancel
Save