getConsentStatus method
Get the current consent status
Implementation
Future<AdropConsentStatus> getConsentStatus() async {
try {
final result =
await _methodChannel.invokeMethod<int>(AdropMethod.getConsentStatus);
return AdropConsentStatus.fromValue(result ?? 0);
} catch (e) {
log('Error getting consent status: $e', name: 'AdropConsentManager');
return AdropConsentStatus.unknown;
}
}