Attribute<T> class

Implementers
Annotations

Constructors

Attribute(String key, AttributeScope scope, T value)
const

Properties

hashCode int
The hash code for this object.
no setter
isBlockExceptHeader bool
no setter
isInline bool
no setter
key String
Unique key of this attribute.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope AttributeScope
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
value → T
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.

Operators

operator ==(Object other) bool
The equality operator.

Static Properties

blockKeys Set<String>
final
blockKeysExceptHeader Set<String>
final
embedKeys Set<String>
final
exclusiveBlockKeys Set<String>
final
inlineKeys Set<String>
final
script ScriptAttribute
final
subscript ScriptAttribute
final
superscript ScriptAttribute
final

Static Methods

clone(Attribute origin, dynamic value) Attribute
fromKeyValue(String key, dynamic value) Attribute?
getIndentLevel(int? level) Attribute<int?>
getRegistryOrder(Attribute attribute) int

Constants

align → const AlignAttribute
background → const BackgroundAttribute
blockQuote → const BlockQuoteAttribute
bold → const BoldAttribute
centerAlignment → const Attribute<String?>
checked → const Attribute<String?>
codeBlock → const CodeBlockAttribute
color → const ColorAttribute
direction → const DirectionAttribute
font → const FontAttribute
h1 → const Attribute<int?>
"attributes":{"header": 1 }
h2 → const Attribute<int?>
"attributes":{"header": 2 }
h3 → const Attribute<int?>
"attributes":{"header": 3 }
h4 → const Attribute<int?>
"attributes":{"header": 4 }
h5 → const Attribute<int?>
"attributes":{"header": 5 }
h6 → const Attribute<int?>
"attributes":{"header": 6 }
height → const HeightAttribute
image → const ImageAttribute
indent → const IndentAttribute
indentL1 → const Attribute<int?>
indentL2 → const Attribute<int?>
indentL3 → const Attribute<int?>
inlineCode → const InlineCodeAttribute
italic → const ItalicAttribute
justifyAlignment → const Attribute<String?>
leftAlignment → const Attribute<String?>
list → const ListAttribute
ol → const Attribute<String?>
placeholder → const PlaceholderAttribute
rightAlignment → const Attribute<String?>
rtl → const Attribute<String?>
size → const SizeAttribute
small → const SmallAttribute
strikeThrough → const StrikeThroughAttribute
style → const StyleAttribute
token → const TokenAttribute
ul → const Attribute<String?>
unchecked → const Attribute<String?>
underline → const UnderlineAttribute
video → const VideoAttribute
width → const WidthAttribute