api method
Returns the previously set API endpoint.
Implementation
@override
Future<String> api() async {
String? rvalue;
try {
rvalue = await methodChannel.invokeMethod<String>('api');
} on PlatformException catch (e) {
print('Cannot get API: $e');
}
return rvalue ?? '';
}