Atlas constructor

Atlas({
  1. Key? key,
  2. required CameraPosition initialCameraPosition,
  3. Set<Marker>? markers,
  4. Set<Callout>? callouts,
  5. Set<Circle>? circles,
  6. Set<Polygon>? polygons,
  7. Set<Polyline>? polylines,
  8. Set<Cluster>? clusters,
  9. TrackPlayback? trackPlayback,
  10. bool? showMyLocation,
  11. bool? showMyLocationButton,
  12. bool? followMyLocation,
  13. MapType? mapType,
  14. bool? showTraffic,
  15. MapLanguage? mapLanguage,
  16. ArgumentCallback<LatLng>? onTap,
  17. ArgumentCallback<Poi>? onPoiTap,
  18. ArgumentCallback<LatLng>? onLongPress,
  19. ArgumentCallback<AtlasController>? onMapCreated,
  20. ArgumentCallback<CameraPosition>? onCameraPositionChanged,
  21. ArgumentCallback<LatLng>? onLocationChanged,
  22. VoidCallback? onPan,
  23. DeviceLocation? deviceLocation,
  24. String? deviceLocationIconAsset,
  25. String? country,
  26. bool? setPoliticalViews,
  27. double? zoom,
  28. double? minZoom,
  29. double? maxZoom,
  30. ArgumentCallback<Polyline>? onPolylineTap,
})

Implementation

Atlas({
  Key? key,
  required this.initialCameraPosition,
  Set<Marker>? markers,
  Set<Callout>? callouts,
  Set<Circle>? circles,
  Set<Polygon>? polygons,
  Set<Polyline>? polylines,
  Set<Cluster>? clusters,
  TrackPlayback? trackPlayback,
  bool? showMyLocation,
  bool? showMyLocationButton,
  bool? followMyLocation,
  MapType? mapType,
  bool? showTraffic,
  MapLanguage? mapLanguage,
  this.onTap,
  this.onPoiTap,
  this.onLongPress,
  this.onMapCreated,
  this.onCameraPositionChanged,
  this.onLocationChanged,
  this.onPan,
  this.deviceLocation,
  this.deviceLocationIconAsset,
  this.country,
  this.setPoliticalViews,
  this.zoom,
  this.minZoom,
  this.maxZoom,
  this.onPolylineTap
})  : markers = markers ?? Set<Marker>(),
      callouts = callouts ?? Set<Callout>(),
      circles = circles ?? Set<Circle>(),
      polygons = polygons ?? Set<Polygon>(),
      polylines = polylines ?? Set<Polyline>(),
      clusters = clusters ?? Set<Cluster>(),
      trackPlayback = trackPlayback,
      showMyLocation = showMyLocation ?? false,
      showMyLocationButton = showMyLocationButton ?? false,
      followMyLocation = followMyLocation ?? false,
      mapType = mapType ?? MapType.normal,
      showTraffic = showTraffic ?? false,
      mapLanguage = mapLanguage ?? MapLanguage.enUs,
      super(key: key);