getSecureStore function

Future<SecureStore> getSecureStore({
  1. required SecureStoreType type,
  2. required Future<String?> getPassword(),
})

Implementation

Future<SecureStore> getSecureStore({
  required SecureStoreType type,
  required Future<String?> Function() getPassword,
}) async {
  if (type == SecureStoreType.biometrics) {
    return BiometricsStore();
  }
  return PasswordStore(getPassword: getPassword);
}