ImageDescriptor class Image Registry
Defines an image. For marker this class can be used to set the image of the marker icon.
- Annotations
Constructors
- ImageDescriptor({String? registeredImageId, double? imagePixelRatio, double? width, double? height})
-
Construct ImageDescriptor.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
Image height in logical pixels.
final
- imagePixelRatio → double?
-
If image is bigger than it's intended display size, scale it down by this ratio.
final
- registeredImageId → String?
-
If this class represents an image from image registry, registeredImageId is not null.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
Image width in logical pixels.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- defaultImage → const ImageDescriptor
- Display default image on a marker or polyline.