hasProductWithId method

  1. @override
Future<bool> hasProductWithId(
  1. String productId
)
override

Implementation

@override
Future<bool> hasProductWithId(String productId) async {
  final result =
      await methodChannel.invokeMethod<bool>('hasProductWithId', productId);
  if (result == null) {
    throw Exception('hasProductWithId returned null');
  }
  return result;
}