PlatformMap constructor

const PlatformMap({
  1. Key? key,
  2. required CameraPosition initialCameraPosition,
  3. MapCreatedCallback? onMapCreated,
  4. Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
  5. bool compassEnabled = true,
  6. MapType mapType = MapType.normal,
  7. MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded,
  8. bool rotateGesturesEnabled = true,
  9. bool scrollGesturesEnabled = true,
  10. bool zoomControlsEnabled = true,
  11. bool zoomGesturesEnabled = true,
  12. bool tiltGesturesEnabled = true,
  13. bool myLocationEnabled = false,
  14. bool myLocationButtonEnabled = false,
  15. EdgeInsets padding = const EdgeInsets.all(0),
  16. bool trafficEnabled = false,
  17. Set<Marker> markers = const <Marker>{},
  18. Set<Polygon> polygons = const <Polygon>{},
  19. Set<Polyline> polylines = const <Polyline>{},
  20. Set<Circle> circles = const <Circle>{},
  21. VoidCallback? onCameraMoveStarted,
  22. CameraPositionCallback? onCameraMove,
  23. VoidCallback? onCameraIdle,
  24. ArgumentCallback<LatLng>? onTap,
  25. ArgumentCallback<LatLng>? onLongPress,
})

Implementation

const PlatformMap({
  Key? key,
  required this.initialCameraPosition,
  this.onMapCreated,
  this.gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
  this.compassEnabled = true,
  this.mapType = MapType.normal,
  this.minMaxZoomPreference = MinMaxZoomPreference.unbounded,
  this.rotateGesturesEnabled = true,
  this.scrollGesturesEnabled = true,
  this.zoomControlsEnabled = true,
  this.zoomGesturesEnabled = true,
  this.tiltGesturesEnabled = true,
  this.myLocationEnabled = false,
  this.myLocationButtonEnabled = false,
  this.padding = const EdgeInsets.all(0),
  this.trafficEnabled = false,
  this.markers = const <Marker>{},
  this.polygons = const <Polygon>{},
  this.polylines = const <Polyline>{},
  this.circles = const <Circle>{},
  this.onCameraMoveStarted,
  this.onCameraMove,
  this.onCameraIdle,
  this.onTap,
  this.onLongPress,
}) : super(key: key);