Image class

A Widget that paints an html.ImageElement.

Inheritance

Constructors

Image(String source, {String? alternativeText, EventCallback<EventDetails<Event>>? onError, Style? style, Animation? animation, EventCallback<EventDetails<Event>>? onTap, PointerEventCallback<PointerEventDetails>? onPointerDown, PointerEventCallback<PointerEventDetails>? onPointerUp, PointerEventCallback<PointerEventDetails>? onPointerEnter, PointerEventCallback<PointerEventDetails>? onPointerLeave, PointerEventCallback<PointerEventDetails>? onPointerMove, PointerEventCallback<PointerEventDetails>? onPointerCancel, PointerEventCallback<PointerEventDetails>? onPointerOver, PointerEventCallback<PointerEventDetails>? onPointerOut, String? key, Ref? ref})
Creates a new instance of Image.
const

Properties

alternativeText String?
final
animation Animation?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key String?
finalinherited
onError EventCallback<EventDetails<Event>>?
final
onPointerCancel PointerEventCallback<PointerEventDetails>?
finalinherited
onPointerDown PointerEventCallback<PointerEventDetails>?
finalinherited
onPointerEnter PointerEventCallback<PointerEventDetails>?
finalinherited
onPointerLeave PointerEventCallback<PointerEventDetails>?
finalinherited
onPointerMove PointerEventCallback<PointerEventDetails>?
finalinherited
onPointerOut PointerEventCallback<PointerEventDetails>?
finalinherited
onPointerOver PointerEventCallback<PointerEventDetails>?
finalinherited
onPointerUp PointerEventCallback<PointerEventDetails>?
finalinherited
onTap EventCallback<EventDetails<Event>>?
finalinherited
ref Ref?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
final
style Style?
finalinherited

Methods

createNode() ImageNode
Returns a Node corresponding to this Widget at a particular location in the Node tree.
override
matches(Widget otherWidget) bool
Checks if two widgets match during a ReassemblableNode reassembly.
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