addPoint method
Adds a point
to the globe.
The point
parameter represents the point to be added to the globe.
Example usage:
controller.addPoint(Point(
coordinates: GlobeCoordinates(0, 0),
id: 'id',
title: 'title',
isTitleVisible: true,
showTitleOnHover: true,
style: PointStyle(color: Colors.red),
textStyle: TextStyle(color: Colors.red),
onTap: () {},
onHover: () {},
));
Implementation
void addPoint(Point point) {
points.add(point);
notifyListeners();
}