copyWith method

NexoraSdkConfig copyWith({
  1. bool? autoRequestPermissions,
  2. bool? logNativeCalls,
  3. bool? ecoMode,
  4. UnsupportedFeaturePolicy? unsupportedFeaturePolicy,
  5. CameraOptions? camera,
  6. AudioOptions? audio,
  7. BluetoothScanOptions? bluetooth,
  8. LocationOptions? location,
  9. SensorOptions? sensors,
  10. HapticOptions? haptics,
  11. AndroidNativeOptions? android,
  12. IosNativeOptions? ios,
  13. 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,
  );
}