AssetImageBitmap class

A BitmapDescriptor from an asset image.

Inheritance
Annotations

Constructors

AssetImageBitmap({required String name, required double scale, Size? size})
Creates a BitmapDescriptor from an asset image with specified name and scale, and an optional size. Asset images in flutter are stored per: https://flutter.dev/to/resolution-aware-images This method takes into consideration various asset resolutions and scales the images to the right resolution depending on the dpi.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
Name of the image asset.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
Scaling factor for the asset image.
final
size Size?
Size of the image if using mipmaps.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
Convert the object to a Json format.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited