clearLines method
Removes all lines from the map.
Change listeners are notified once all lines have been removed on the platform side.
The returned Future completes once listeners have been notified.
Implementation
Future<void> clearLines() async {
final List<String> lineIds = List<String>.from(_lines.keys);
await _mapboxGlPlatform.removeLines(lineIds);
_lines.clear();
notifyListeners();
}