copyWith method

OhosOptions copyWith({
  1. bool? encryptedSharedPreferences,
  2. bool? resetOnError,
  3. OhosKeyCipherAlgorithm? ohosKeyCipherAlgorithm,
  4. OhosStorageCipherAlgorithm? ohosStorageCipherAlgorithm,
  5. String? preferencesKeyPrefix,
  6. String? sharedPreferencesName,
})

Implementation

OhosOptions copyWith({
  bool? encryptedSharedPreferences,
  bool? resetOnError,
  OhosKeyCipherAlgorithm? ohosKeyCipherAlgorithm,
  OhosStorageCipherAlgorithm? ohosStorageCipherAlgorithm,
  String? preferencesKeyPrefix,
  String? sharedPreferencesName,
}) =>
    OhosOptions(
      encryptedSharedPreferences:
          encryptedSharedPreferences ?? _encryptedSharedPreferences,
      resetOnError: resetOnError ?? _resetOnError,
      ohosKeyCipherAlgorithm: ohosKeyCipherAlgorithm ?? _ohosKeyCipherAlgorithm,
      ohosStorageCipherAlgorithm:
          ohosStorageCipherAlgorithm ?? _ohosStorageCipherAlgorithm,
      sharedPreferencesName: sharedPreferencesName,
      preferencesKeyPrefix: preferencesKeyPrefix,
    );