api method

  1. @override
Future<String> api()
override

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 ?? '';
}