getApiBaseUrl method

Future<String> getApiBaseUrl()

Get API base URL from native code

Implementation

Future<String> getApiBaseUrl() async {
  try {
    final result = await _channel.invokeMethod<String>('getApiBaseUrl');
    return result ?? '';
  } on PlatformException {
    return '';
  }
}