copyWith method

AndroidOptions copyWith({
  1. bool? encryptedSharedPreferences,
  2. bool? resetOnError,
  3. KeyCipherAlgorithm? keyCipherAlgorithm,
  4. StorageCipherAlgorithm? storageCipherAlgorithm,
  5. String? preferencesKeyPrefix,
  6. String? sharedPreferencesName,
})

Implementation

AndroidOptions copyWith({
  bool? encryptedSharedPreferences,
  bool? resetOnError,
  KeyCipherAlgorithm? keyCipherAlgorithm,
  StorageCipherAlgorithm? storageCipherAlgorithm,
  String? preferencesKeyPrefix,
  String? sharedPreferencesName,
}) =>
    AndroidOptions(
      encryptedSharedPreferences:
          encryptedSharedPreferences ?? _encryptedSharedPreferences,
      resetOnError: resetOnError ?? _resetOnError,
      keyCipherAlgorithm: keyCipherAlgorithm ?? _keyCipherAlgorithm,
      storageCipherAlgorithm:
          storageCipherAlgorithm ?? _storageCipherAlgorithm,
      sharedPreferencesName: sharedPreferencesName,
      preferencesKeyPrefix: preferencesKeyPrefix,
    );