BitmapDescriptor class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
read-only

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.