getPaasKeys method
Fetches the pass keys from the Firestore database. Returns a Future that resolves to the pass keys.
Implementation
Future<void> getPaasKeys() async {
try {
final document = await databases.getDocument(
databaseId: AppConstants.appwriteDatabaseId,
collectionId: AppConstants.configCollectionId,
documentId: 'PassKeys',
queries: []);
if (mounted) {
setState(() {
passKeys = Map<String, dynamic>.from(document.data);
});
}
} on AppwriteException catch (e) {
debugPrint("Error fetching PassKeys: ${e.message}");
}
}