copyWith method
Marker
copyWith({})
Implementation
Marker copyWith({
LatLng? point,
Widget? child,
double? width,
double? height,
Alignment? alignment,
bool? rotate,
}) {
final marker = this;
if (marker is InteractiveMarker) {
return marker.copyWith(
point: point,
child: child,
width: width,
height: height,
alignment: alignment,
rotate: rotate,
);
}
return Marker(
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,
);
}