setUnsupportCountries static method

dynamic setUnsupportCountries(
  1. List<String> isoCodeList
)

set unsupport countries list, used with phone login UI

isoCodeList is ISO 3166-1 alpha-2 code list, https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 such as the US, the UK, etc.

Implementation

static setUnsupportCountries(List<String> isoCodeList) {
  List<String> lowerCaseIsoCodeList =
      isoCodeList.map((code) => code.toLowerCase()).toList();
  if (Platform.isIOS) {
    _channel.invokeMethod(
        "setUnsupportCountries", jsonEncode(lowerCaseIsoCodeList));
  } else {
    // todo
  }
}