FakeImageComponentBuilder class

A ComponentBuilder which builds an ImageComponent that always renders images as a SizedBox with the given size.

Implemented types

Constructors

FakeImageComponentBuilder({required Size size, Color? fillColor})
const

Properties

fillColor Color?
The color that fills the entire image component.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
The size of the image component.
final

Methods

createComponent(SingleColumnDocumentComponentContext componentContext, SingleColumnLayoutComponentViewModel componentViewModel) Widget?
Creates a visual component that renders the given viewModel, or returns null if this builder doesn't apply to the given viewModel.
override
createViewModel(Document document, DocumentNode node) SingleColumnLayoutComponentViewModel?
Produces a SingleColumnLayoutComponentViewModel with default styles for the given node, or returns null if this builder doesn't apply to the given node.
override
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