ImageScreenObject class
A screen object that renders an image.
The image source is represented as a URI string, such as:
data:URI (e.g. base64-encoded image data)
The actual image loading and decoding is handled by the platform side.
- Inheritance
-
- Object
- ScreenObject
- ImageScreenObject
Constructors
Properties
-
elements
↔ Map<
String, String> -
Returns the serializable elements of this screen object.
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalAlignment ↔ HorizontalAlignment
-
The horizontal alignment of this object within its parent.
getter/setter pairinherited
- id → String
-
The unique identifier of this screen object.
finalinherited
- isVisible ↔ bool
-
Whether this object is visible.
getter/setter pairinherited
- layoutMargin ↔ ScreenObjectEdgeInsets
-
The margin applied around this object during layout.
getter/setter pairinherited
- parent ↔ ScreenObjectContainer?
-
The parent container of this object, if any.
getter/setter pairinherited
- root → ScreenObject?
-
Returns the root object of the hierarchy.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldInvalidateLayout → bool
-
Whether this object requires a layout update.
no setterinherited
- size ↔ ScreenObjectSize
-
Returns the frame rectangle of this object.
getter/setter pairinherited
- source → String
-
Returns the current image source URI.
no setter
- type → String
-
The object type identifier.
final
- verticalAlignment ↔ VerticalAlignment
-
The vertical alignment of this object within its parent.
getter/setter pairinherited
Methods
-
invalidateLayout(
) → void -
Invalidates the current layout and propagates the change to parents.
inherited
-
layout(
ScreenRenderer renderer) → void -
Performs layout for this object using the given
renderer.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setImage(
ImageScreenObjectFormat format, ByteBuffer buffer) → void - Sets the image from raw binary data.
-
snapshot(
) → ScreenObjectSnapshot -
Creates a snapshot representing the current state of this object.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited