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