CustomMarker constructor
CustomMarker({
- required String id,
- required LatLng position,
- required Widget widget,
- double width = 50,
- double height = 50,
- Alignment alignment = Alignment.center,
- int rotation = 0,
- bool flat = false,
- String? fallbackAssetPath,
- String? fallbackAssetPackage,
- VoidCallback? onTap,
- Object? cacheKey,
- 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),
});