copyWith method
MyLocationControllerSettings
copyWith({
- Optional<
BearingSource?> ? bearingSource, - Duration? animationDuration,
- Meter? coordinatesThreshold,
- Bearing? bearingThreshold,
Implementation
MyLocationControllerSettings copyWith({
Optional<BearingSource?>? bearingSource,
Duration? animationDuration,
Meter? coordinatesThreshold,
Bearing? bearingThreshold
}) {
return MyLocationControllerSettings(
bearingSource: bearingSource != null ? bearingSource.value : this.bearingSource,
animationDuration: animationDuration ?? this.animationDuration,
coordinatesThreshold: coordinatesThreshold ?? this.coordinatesThreshold,
bearingThreshold: bearingThreshold ?? this.bearingThreshold
);
}