hasPurpose method
Checks if there is consent for the specified purpose ID.
Implementation
@override
Future<bool> hasPurpose(String id, {bool defaultReturn = true}) async {
final result = await methodChannel.invokeMethod<bool>(
'hasPurpose', {'id': id, 'defaultReturn': defaultReturn});
return result ?? false;
}