AMapView constructor Null safety

const AMapView(
  1. {Key? key,
  2. bool autoLocateAfterInit = false,
  3. LocationType locationType = LocationType.LOCATE,
  4. int locationInterval = 2000,
  5. bool showZoomControl = true,
  6. bool showCompass = false,
  7. bool showLocationButton = false,
  8. bool showScaleControl = false,
  9. bool? allGestureEnable,
  10. bool zoomGestureEnable = true,
  11. bool rotateGestureEnable = true,
  12. bool scrollGestureEnable = true,
  13. bool tiltGestureEnable = true,
  14. bool isGestureScaleByMapCenter = false,
  15. ZoomPosition zoomPosition = ZoomPosition.RIGHT_BOTTOM,
  16. LogoPosition logoPosition = LogoPosition.BOTTOM_LEFT,
  17. LogoMargin? logoMargin,
  18. CompassMargin? compassMargin,
  19. ScaleMargin? scaleMargin}
)

Implementation

const AMapView({
  Key? key,
  this.autoLocateAfterInit = false,
  this.locationType = LocationType.LOCATE,
  this.locationInterval = 2000,
  this.showZoomControl = true,
  this.showCompass = false,
  this.showLocationButton = false,
  this.showScaleControl = false,
  this.allGestureEnable,
  this.zoomGestureEnable = true,
  this.rotateGestureEnable = true,
  this.scrollGestureEnable = true,
  this.tiltGestureEnable = true,
  this.isGestureScaleByMapCenter = false,
  this.zoomPosition = ZoomPosition.RIGHT_BOTTOM,
  this.logoPosition = LogoPosition.BOTTOM_LEFT,
  this.logoMargin,
  this.compassMargin,
  this.scaleMargin,
}) : super(key: key);