getSupportedCountries static method

Future getSupportedCountries(
  1. dynamic result(
    1. dynamic ret,
    2. Map? err
    )
)

Implementation

static Future getSupportedCountries(Function(dynamic ret, Map? err) result) {
  Future<dynamic> callback = _channel.invokeMethod('getSupportedCountries');
  callback.then((dynamic response) {
    if (response is Map) {
      result(response["ret"], response["err"]);
    } else {
      result(null, null);
    }
  });

  return callback;
}