Image class

An image component with optional zooming and caption support.

Implemented types

Constructors

Image.new({bool zoom = false, bool replaceImg = true})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
replaceImg bool
Whether to replace the default tag with this component.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoom bool
Whether to enable zooming on the image.
final

Methods

create(Node node, NodesBuilder builder) → Component?
Creates a component for the given node, or returns null.
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

Static Properties

styles List<StyleRule>
no setter

Static Methods

from({required String src, String? alt, String? caption, bool zoom = false, Key? key}) → Component