BitmapDescriptor class

Defines a bitmap image. For a marker, this class can be used to set the image of the marker icon. For a ground overlay, it can be used to set the image to place on the surface of the earth.

Properties

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

Methods

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

Static Properties

defaultMarker BitmapDescriptor?
Creates a BitmapDescriptor that refers to the default marker image.
no setter

Static Methods

fromAssetImage(ImageConfiguration configuration, String assetName, {AssetBundle? bundle, String? package}) Future<BitmapDescriptor>
Creates a BitmapDescriptor from an asset image. Asset images in flutter are stored per: https://flutter.dev/docs/development/ui/assets-and-images#declaring-resolution-aware-image-assets
fromBytes(Uint8List byteData) BitmapDescriptor
Creates a BitmapDescriptor using an array of bytes that must be encoded as PNG.