addLineFromGeoPoints method
Add a line on the map
Implementation
Future<void> addLineFromGeoPoints(
{@required String name,
@required List<GeoPoint> geoPoints,
double width = 3.0,
Color color = Colors.green,
bool isDotted = false}) async {
final points =
GeoSerie(type: GeoSerieType.line, name: "serie", geoPoints: geoPoints)
.toLatLng();
await _linesState.addLine(
name: name,
points: points,
color: color,
width: width,
isDotted: isDotted);
}