PinData class

Represents a pin to be drawn on the map.

Constructors

PinData({required LatLong latLong, String title = '', String detail = '', Color color = Colors.red, IconData icon = Icons.location_on, Widget? child, Widget? detailWidget, void onTap()?})

Properties

child Widget?
Optional fully custom widget that replaces the default pin icon entirely. If provided, icon and color are ignored.
final
color Color
The color of the default pin icon. Defaults to Colors.red. Ignored if child is provided.
final
detail String
Additional details or subtitle of the pin.
final
detailWidget Widget?
Optional widget to display in a popup/overlay when the pin is tapped or selected.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData
The icon to draw for the pin. Defaults to Icons.location_on. Ignored if child is provided.
final
latLong LatLong
The geographical coordinates of the pin.
final
onTap → void Function()?
Optional callback triggered when the pin is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The primary title or label of the pin.
final

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