hasPurpose method

  1. @override
Future<bool> hasPurpose(
  1. String id
)
override

Checks if there is consent for the specified purpose ID.

Implementation

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