remove method

void remove()

Disposes of the currently wrapped gmaps.Polyline.

Implementation

void remove() {
  if (_polyline != null) {
    _polyline!.visible = false;
    _polyline!.map = null;
    _polyline = null;
  }
}