copyWith method
Creates a copy of this marker with the given fields replaced with new values.
Implementation
InteractiveMarker copyWith({
LatLng? point,
Widget? child,
double? width,
double? height,
Alignment? alignment,
bool? rotate,
bool? hidden,
List<MarkerOptions>? options,
}) {
return InteractiveMarker(
key: key,
point: point ?? this.point,
child: child ?? this.child,
width: width ?? this.width,
height: height ?? this.height,
alignment: alignment ?? this.alignment,
rotate: rotate ?? this.rotate,
hidden: hidden ?? this.hidden,
options: List<MarkerOptions>.of(options ?? this.options),
);
}