getVendor static method

Future<Vendor?> getVendor(
  1. String vendorId
)

Get a vendor by its id.

Implementation

static Future<Vendor?> getVendor(String vendorId) async {
  final dynamic result = await _channel.invokeMethod("getVendor", {"vendorId": vendorId});
  if (result == null) return null;
  return Vendor.fromJson(result);
}