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