Image class
A Widget that paints an html.ImageElement.
- Inheritance
-
- Object
- Widget
- PaintedWidget
- Image
Constructors
-
Image(String source, {String? alternativeText, EventSubscriptionCallback<
ErrorEvent> ? onError, Style? style, Animation? animation, EventSubscriptionCallback<MouseEvent> ? onTap, EventSubscriptionCallback<PointerEvent> ? onPointerDown, EventSubscriptionCallback<PointerEvent> ? onPointerUp, EventSubscriptionCallback<PointerEvent> ? onPointerEnter, EventSubscriptionCallback<PointerEvent> ? onPointerLeave, EventSubscriptionCallback<PointerEvent> ? onPointerMove, EventSubscriptionCallback<PointerEvent> ? onPointerCancel, EventSubscriptionCallback<PointerEvent> ? onPointerOver, EventSubscriptionCallback<PointerEvent> ? onPointerOut, EventSubscriptionCallback<MouseEvent> ? onMouseDown, EventSubscriptionCallback<MouseEvent> ? onMouseUp, EventSubscriptionCallback<MouseEvent> ? onMouseEnter, EventSubscriptionCallback<MouseEvent> ? onMouseLeave, EventSubscriptionCallback<MouseEvent> ? onMouseMove, EventSubscriptionCallback<MouseEvent> ? onMouseOver, EventSubscriptionCallback<MouseEvent> ? onMouseOut, EventSubscriptionCallback<TouchEvent> ? onTouchStart, EventSubscriptionCallback<TouchEvent> ? onTouchEnd, EventSubscriptionCallback<TouchEvent> ? onTouchMove, EventSubscriptionCallback<TouchEvent> ? onTouchCancel, String? key}) -
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
→ EventSubscriptionCallback<
ErrorEvent> ? -
final
-
onMouseDown
→ EventSubscriptionCallback<
MouseEvent> ? -
finalinherited
-
onMouseEnter
→ EventSubscriptionCallback<
MouseEvent> ? -
finalinherited
-
onMouseLeave
→ EventSubscriptionCallback<
MouseEvent> ? -
finalinherited
-
onMouseMove
→ EventSubscriptionCallback<
MouseEvent> ? -
finalinherited
-
onMouseOut
→ EventSubscriptionCallback<
MouseEvent> ? -
finalinherited
-
onMouseOver
→ EventSubscriptionCallback<
MouseEvent> ? -
finalinherited
-
onMouseUp
→ EventSubscriptionCallback<
MouseEvent> ? -
finalinherited
-
onPointerCancel
→ EventSubscriptionCallback<
PointerEvent> ? -
finalinherited
-
onPointerDown
→ EventSubscriptionCallback<
PointerEvent> ? -
finalinherited
-
onPointerEnter
→ EventSubscriptionCallback<
PointerEvent> ? -
finalinherited
-
onPointerLeave
→ EventSubscriptionCallback<
PointerEvent> ? -
finalinherited
-
onPointerMove
→ EventSubscriptionCallback<
PointerEvent> ? -
finalinherited
-
onPointerOut
→ EventSubscriptionCallback<
PointerEvent> ? -
finalinherited
-
onPointerOver
→ EventSubscriptionCallback<
PointerEvent> ? -
finalinherited
-
onPointerUp
→ EventSubscriptionCallback<
PointerEvent> ? -
finalinherited
-
onTap
→ EventSubscriptionCallback<
MouseEvent> ? -
finalinherited
-
onTouchCancel
→ EventSubscriptionCallback<
TouchEvent> ? -
finalinherited
-
onTouchEnd
→ EventSubscriptionCallback<
TouchEvent> ? -
finalinherited
-
onTouchMove
→ EventSubscriptionCallback<
TouchEvent> ? -
finalinherited
-
onTouchStart
→ EventSubscriptionCallback<
TouchEvent> ? -
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