copyWith method
- bool? enabled,
- bool? blockMockLocations,
- SpoofSensitivity? sensitivity,
- double? maxPossibleSpeedKph,
- double? maxAltitudeChangePerSecond,
- int? minFactorsForDetection,
- void onSpoofDetected()?,
- bool? checkMockProvider,
- bool? checkDeveloperOptions,
- bool? checkMockMode,
- List<
String> ? trustedMockProviders,
Creates a copy with the given fields replaced.
Implementation
SpoofDetectionConfig copyWith({
bool? enabled,
bool? blockMockLocations,
SpoofSensitivity? sensitivity,
double? maxPossibleSpeedKph,
double? maxAltitudeChangePerSecond,
int? minFactorsForDetection,
void Function(SpoofDetectionEvent)? onSpoofDetected,
bool? checkMockProvider,
bool? checkDeveloperOptions,
bool? checkMockMode,
List<String>? trustedMockProviders,
}) {
return SpoofDetectionConfig(
enabled: enabled ?? this.enabled,
blockMockLocations: blockMockLocations ?? this.blockMockLocations,
sensitivity: sensitivity ?? this.sensitivity,
maxPossibleSpeedKph: maxPossibleSpeedKph ?? this.maxPossibleSpeedKph,
maxAltitudeChangePerSecond:
maxAltitudeChangePerSecond ?? this.maxAltitudeChangePerSecond,
minFactorsForDetection:
minFactorsForDetection ?? this.minFactorsForDetection,
onSpoofDetected: onSpoofDetected ?? this.onSpoofDetected,
checkMockProvider: checkMockProvider ?? this.checkMockProvider,
checkDeveloperOptions:
checkDeveloperOptions ?? this.checkDeveloperOptions,
checkMockMode: checkMockMode ?? this.checkMockMode,
trustedMockProviders: trustedMockProviders ?? this.trustedMockProviders,
);
}