BlockEmbed class Null safety

There are two built-in embed types supported by Quill documents, however the document model itself does not make any assumptions about the types of embedded objects and allows users to define their own types.

Inheritance

Constructors

BlockEmbed(String type, String data)
const

Properties

data → dynamic
The data payload of this object.
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
The type of this object.
final, inherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

image(String imageUrl) BlockEmbed
video(String videoUrl) BlockEmbed

Constants

imageType → const String
'image'
videoType → const String
'video'