copyWith method

InteractiveMarker copyWith({
  1. LatLng? point,
  2. Widget? child,
  3. double? width,
  4. double? height,
  5. Alignment? alignment,
  6. bool? rotate,
  7. bool? hidden,
  8. List<MarkerOptions>? options,
})

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),
  );
}