copyWith method

MyLocationControllerSettings copyWith({
  1. Optional<BearingSource?>? bearingSource,
  2. Duration? animationDuration,
  3. Meter? coordinatesThreshold,
  4. 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
  );
}