copyWith method
OhosOptions
copyWith({
- bool? resetOnError,
- OhosKeyCipherAlgorithm? ohosKeyCipherAlgorithm,
- OhosStorageCipherAlgorithm? ohosStorageCipherAlgorithm,
- String? preferencesKeyPrefix,
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,
);