PolylineController constructor
PolylineController({
- required Polyline polyline,
- bool consumeTapEvents = false,
- VoidCallback? onTap,
Creates a PolylineController
that wraps a gmaps.Polyline
object and its onTap
behavior.
Implementation
PolylineController({
required gmaps.Polyline polyline,
bool consumeTapEvents = false,
ui.VoidCallback? onTap,
}) : _polyline = polyline,
_consumeTapEvents = consumeTapEvents {
if (onTap != null) {
polyline.onClick.listen((gmaps.PolyMouseEvent event) {
onTap.call();
});
}
}