copyWith method

MyLocationStyle copyWith({
  1. String? myLocationIcon,
  2. double? anchorU,
  3. double? anchorV,
  4. Color? radiusFillColor,
  5. Color? strokeColor,
  6. double? strokeWidth,
  7. int? myLocationType,
  8. int? interval,
  9. bool? showMyLocation,
  10. bool? showsAccuracyRing,
  11. bool? showsHeadingIndicator,
  12. Color? locationDotBgColor,
  13. Color? locationDotFillColor,
  14. bool? enablePulseAnnimation,
  15. String? image,
})

Implementation

MyLocationStyle copyWith({
  String? myLocationIcon,
  double? anchorU,
  double? anchorV,
  Color? radiusFillColor,
  Color? strokeColor,
  double? strokeWidth,
  int? myLocationType,
  int? interval,
  bool? showMyLocation,
  bool? showsAccuracyRing,
  bool? showsHeadingIndicator,
  Color? locationDotBgColor,
  Color? locationDotFillColor,
  bool? enablePulseAnnimation,
  String? image,
}) {
  return MyLocationStyle(
    myLocationIcon: myLocationIcon ?? this.myLocationIcon,
    anchorU: anchorU ?? this.anchorU,
    anchorV: anchorV ?? this.anchorV,
    radiusFillColor: radiusFillColor ?? this.radiusFillColor,
    strokeColor: strokeColor ?? this.strokeColor,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    myLocationType: myLocationType ?? this.myLocationType,
    interval: interval ?? this.interval,
    showMyLocation: showMyLocation ?? this.showMyLocation,
    showsAccuracyRing: showsAccuracyRing ?? this.showsAccuracyRing,
    showsHeadingIndicator: showsHeadingIndicator ?? this.showsHeadingIndicator,
    locationDotBgColor: locationDotBgColor ?? this.locationDotBgColor,
    locationDotFillColor: locationDotFillColor ?? this.locationDotFillColor,
    enablePulseAnnimation: enablePulseAnnimation ?? this.enablePulseAnnimation,
    image: image ?? this.image,
  );
}