Merge pull request #4 from nguoidilam/feat/custom_attribute

Add attribute key
pull/1326/head
Lê Mạnh Toàn 2 years ago committed by GitHub
commit 1b706e356a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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