Marker class

Represents a marker on the map. A marker is an icon placed at a particular point on the map's surface. The marker can be styled with an image, title, and snippet.

Constructors

Marker.new({required String imagePath, required LatLng latLng, String? title, String? snippet, int? width, int? height})
The marker must have a valid imagePath and latLng. The width and height must be both provided or both null.

Properties

hashCode int
The hash code for this object.
no setterinherited
height int?
final
imagePath String
The image path of the marker, allow only image in png, jpeg, jpg format
final
latLng LatLng
final
markerId int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snippet String?
final
title String?
final
width int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
toString() String
A string representation of this object.
inherited

Operators

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