ImageEmbed class

Embed that displays an image.

Inheritance
Annotations

Constructors

ImageEmbed({required ImageProvider<Object> image, String? alt})
Create an image embed.
const

Properties

alt String?
Alt text for the image.
final
hashCode int
The hash code for this object.
no setterinherited
image ImageProvider<Object>
Provider for the image.
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
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

createController() ParagraphEmbedController
Create a controller with this embed as its initial state.
override
createView(BuildContext context) Widget
Create a widget that displays this embed.
override
match<T>({required T line(LineParagraph), required T embed(ParagraphEmbed)}) → T
Execute line if this is a LineParagraph and embed if this is a ParagraphEmbed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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