BlockType class

Discriminator for block types. The structure of content varies by type (e.g. paragraph carries richText; code carries richText + language; image carries url + caption + altText).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → String
The underlying value of this enum member.
final

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → BlockType?
listFromJson(dynamic json, {bool growable = false}) → List<BlockType>

Constants

bulletedListItem → const BlockType
callout → const BlockType
code → const BlockType
column → const BlockType
columnList → const BlockType
divider → const BlockType
embed → const BlockType
equation → const BlockType
file → const BlockType
heading1 → const BlockType
heading2 → const BlockType
heading3 → const BlockType
image → const BlockType
numberedListItem → const BlockType
paragraph → const BlockType
quote → const BlockType
table → const BlockType
tableOfContents → const BlockType
tableRow → const BlockType
toDo → const BlockType
toggle → const BlockType
values → const List<BlockType>
List of all possible values in this BlockType.
video → const BlockType