copyWith method
Creates a new MFImageOverlay object whose values are the same as this instance, unless overwritten by the specified parameters.
Implementation
MFImageOverlay copyWith({
double? transparencyParam,
int? zIndexParam,
bool? visibleParam,
}) {
return MFImageOverlay(
imageOverlayId: imageOverlayId,
image: image,
bounds: bounds,
transparency: transparencyParam ?? transparency,
zIndex: zIndexParam ?? zIndex,
visible: visibleParam ?? visible,
);
}