hasVendor method

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

Checks if there is consent for the specified vendor ID.

Implementation

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