setPolyline method

Future<String> setPolyline(
  1. List<GisPoint> points
)

Implementation

Future<String> setPolyline(List<GisPoint> points) async {
  try {
    String status =
        await _platform.invokeMethod('setPolyline', {'points': points.map((e) => e.toNativeMap()).toList()});
    return status;
  } on PlatformException catch (e) {
    log('Platform exeption setPolyline() message: $e');
    return 'ERROR';
  }
}