copyWith method
NexoraSdkConfig
copyWith({
- bool? autoRequestPermissions,
- bool? logNativeCalls,
- bool? ecoMode,
- UnsupportedFeaturePolicy? unsupportedFeaturePolicy,
- CameraOptions? camera,
- AudioOptions? audio,
- BluetoothScanOptions? bluetooth,
- LocationOptions? location,
- SensorOptions? sensors,
- HapticOptions? haptics,
- AndroidNativeOptions? android,
- IosNativeOptions? ios,
- Map<
String, Object> ? nativeFlags,
Returns a copy with selected values changed.
Implementation
NexoraSdkConfig copyWith({
bool? autoRequestPermissions,
bool? logNativeCalls,
bool? ecoMode,
UnsupportedFeaturePolicy? unsupportedFeaturePolicy,
CameraOptions? camera,
AudioOptions? audio,
BluetoothScanOptions? bluetooth,
LocationOptions? location,
SensorOptions? sensors,
HapticOptions? haptics,
AndroidNativeOptions? android,
IosNativeOptions? ios,
Map<String, Object>? nativeFlags,
}) {
return NexoraSdkConfig(
autoRequestPermissions:
autoRequestPermissions ?? this.autoRequestPermissions,
logNativeCalls: logNativeCalls ?? this.logNativeCalls,
ecoMode: ecoMode ?? this.ecoMode,
unsupportedFeaturePolicy:
unsupportedFeaturePolicy ?? this.unsupportedFeaturePolicy,
camera: camera ?? this.camera,
audio: audio ?? this.audio,
bluetooth: bluetooth ?? this.bluetooth,
location: location ?? this.location,
sensors: sensors ?? this.sensors,
haptics: haptics ?? this.haptics,
android: android ?? this.android,
ios: ios ?? this.ios,
nativeFlags: nativeFlags ?? this.nativeFlags,
);
}