getProductsWithIdList static method
Fetches the filtered products with specified id list from appmate server. If sandbox parameter value is false, non-synched products will not be fetched
If a previous successful fetch exists in last 10 minutes, it fetches the products from local cache. So you will be able to get the response faster than getting directly from the network. Otherwise, it will launch a network request.
If you add a new product and want to see it in your app for testing purposes, you can delete your app's cache. The products will be fetched from the network the next time you open your app.
List of desired product ids as String arrayids
.
Callbacks ProductsResponse
and GenericError in case of failure.
Implementation
static Future<ProductsResponse> getProductsWithIdList(
List<String> ids) async {
final List<Object?>? response =
await _channel.invokeMethod('getProductsWithIdList', {"ids": ids});
return _getProductsFromResponse(response);
}