hasPurposeConsent method

  1. @override
Future<bool> hasPurposeConsent(
  1. String id, {
  2. bool defaultReturn = true,
})
override

Checks if there is consent for the specified purpose ID.

Implementation

@override
Future<bool> hasPurposeConsent(String id, {bool defaultReturn = true}) async {
  final result =
      await methodChannel.invokeMethod<bool>('hasPurposeConsent', {'id': id});
  return result ?? false;
}