hasEncryptionSetup static method
Check if verification key exists (meaning encryption was set up).
Implementation
static Future<bool> hasEncryptionSetup() async {
try {
final verificationKey = await KeyManager.getVerificationKey();
return verificationKey.isNotEmpty;
} catch (_) {
return false;
}
}