dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
790 B
28 lines
790 B
enum AttributeScope { |
|
INLINE, // refer to https://quilljs.com/docs/formats/#inline |
|
BLOCK, // refer to https://quilljs.com/docs/formats/#block |
|
EMBEDS, // refer to https://quilljs.com/docs/formats/#embeds |
|
} |
|
|
|
class Attribute<T> { |
|
final String key; |
|
final AttributeScope scope; |
|
|
|
Attribute(this.key, this.scope); |
|
} |
|
|
|
class BoldAttribute extends Attribute<bool> { |
|
BoldAttribute() : super('bold', AttributeScope.INLINE); |
|
} |
|
|
|
class ItalicAttribute extends Attribute<bool> { |
|
ItalicAttribute() : super('italic', AttributeScope.INLINE); |
|
} |
|
|
|
class UnderlineAttribute extends Attribute<bool> { |
|
UnderlineAttribute() : super('underline', AttributeScope.INLINE); |
|
} |
|
|
|
class StrikeThroughAttribute extends Attribute<bool> { |
|
StrikeThroughAttribute() : super('strike', AttributeScope.INLINE); |
|
}
|
|
|