getLink static method
Returns the 3D URL to display the product on a webview
Implementation
static Future<String> getLink(String sku) async {
print("R2U.getLink " + sku);
if (state.init == false) {
throw Exception("R2U — Not initialized");
}
final p = await product(sku);
final url = 'https://viewer.r2u.io/3d/${Uri.encodeComponent(p.glb)}';
return url;
}