productWithIdentifier static method

Future<PLYProduct> productWithIdentifier(
  1. String vendorId
)

Implementation

static Future<PLYProduct> productWithIdentifier(String vendorId) async {
  final Map<dynamic, dynamic> result = await _channel.invokeMethod(
      'productWithIdentifier', <String, dynamic>{'vendorId': vendorId});
  final List<PLYPlan?> plans = new List.empty(growable: true);
  result['plans'].forEach((k, plan) => {plans.add(transformToPLYPlan(plan))});
  return PLYProduct(
      result['name'], result['vendorId'], plans.whereNotNull().toList());
}