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