setFrameUrl static method
setFrameUrl
Set a custom widget url
Available Platforms
Web, Android, iOS
Implementation
static Future<void> setFrameUrl({required String url}) async {
if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
debugPrint(
'setFrameUrl is not available for current operating system',
);
return;
}
await _channel.invokeMethod(
'setFrameUrl',
{
'url': url,
},
);
}