encodedToString method

Future<String> encodedToString()

Implementation

Future<String> encodedToString() async {
  final List<GeoPoint> listGeos = this;
  return compute((List<GeoPoint> geoPoints) async {
    final coordinates = geoPoints.map((e) => e.toListNum()).toList();
    return encodePolyline(coordinates);
  }, listGeos);
}