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