SymbolImage class

A wrapper for a ui.Image that represents a bitmap symbol.

This class manages the underlying ui.Image and provides methods for accessing its properties, cloning it, and creating shaders from it. It is crucial to call dispose when the image is no longer needed to release its resources.

Constructors

SymbolImage(Image _image)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() SymbolImage
Creates a clone of this SymbolImage.
dispose() → void
Disposes the underlying ui.Image to release its resources.
expose() Image
Exposes the underlying ui.Image for direct use.
getBoundary() → MapRectangle
Returns the boundary of the symbol, centered at (0,0).
getHeight() int
Returns the height of the symbol image.
getShader() ImageShader
Creates an ImageShader from the symbol image.
getWidth() int
Returns the width of the symbol image.
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