ImageOverlay constructor
ImageOverlay(
- dynamic image, {
- Key? key,
- dynamic bounds,
- ImageProvider<
Object> ? imageError, - double opacity = 1.0,
- double rotation = 0.0,
- BoxFit fit = BoxFit.cover,
- bool gaplessPlayback = true,
- dynamic data,
- InteractiveLayerOptions? options,
Implementation
ImageOverlay(
dynamic image, {
Key? key,
dynamic bounds,
this.imageError,
this.opacity = 1.0,
this.rotation = 0.0,
this.fit = BoxFit.cover,
this.gaplessPlayback = true,
this.data,
InteractiveLayerOptions? options,
}) : assert((image is String || image is ImageProvider) && bounds != null),
imagePath = image is String ? image : null,
imageFile = image is File ? image : null,
imageProvider = image is ImageProvider ? image : null,
image = image is Image ? image : null,
bounds = LatLngBounds.from(bounds),
super(key: key, options: options);