CustomMarker constructor

CustomMarker({
  1. required String id,
  2. required LatLng position,
  3. required Widget widget,
  4. double width = 50,
  5. double height = 50,
  6. Alignment alignment = Alignment.center,
  7. int rotation = 0,
  8. bool flat = false,
  9. String? fallbackAssetPath,
  10. String? fallbackAssetPackage,
  11. VoidCallback? onTap,
  12. Object? cacheKey,
  13. Duration renderDelay = const Duration(milliseconds: 500),
})

Implementation

CustomMarker({
  required this.id,
  required this.position,
  required this.widget,
  this.width = 50,
  this.height = 50,
  this.alignment = Alignment.center,
  this.rotation = 0,
  this.flat = false,
  this.fallbackAssetPath,
  this.fallbackAssetPackage,
  this.onTap,
  this.cacheKey,
  this.renderDelay = const Duration(milliseconds: 500),
});