copyWith method

SignificantChangeConfig copyWith({
  1. double? minDisplacementMeters,
  2. bool? deferUntilMoved,
  3. void onSignificantChange(
    1. Location
    )?,
  4. bool? wakeFromBackground,
  5. bool? monitorInForeground,
  6. Duration? maxUpdateInterval,
})

Creates a copy with the given fields replaced.

Implementation

SignificantChangeConfig copyWith({
  double? minDisplacementMeters,
  bool? deferUntilMoved,
  void Function(Location)? onSignificantChange,
  bool? wakeFromBackground,
  bool? monitorInForeground,
  Duration? maxUpdateInterval,
}) {
  return SignificantChangeConfig(
    minDisplacementMeters:
        minDisplacementMeters ?? this.minDisplacementMeters,
    deferUntilMoved: deferUntilMoved ?? this.deferUntilMoved,
    onSignificantChange: onSignificantChange ?? this.onSignificantChange,
    wakeFromBackground: wakeFromBackground ?? this.wakeFromBackground,
    monitorInForeground: monitorInForeground ?? this.monitorInForeground,
    maxUpdateInterval: maxUpdateInterval ?? this.maxUpdateInterval,
  );
}