getSMSCode method

Future<Map> getSMSCode({
  1. @required String? phoneNum,
  2. String? signId,
  3. String? tempId,
})

Implementation

Future<Map<dynamic, dynamic>> getSMSCode(
    {@required String? phoneNum, String? signId, String? tempId}) async {
  print("$flutter_log" + "getSMSCode");

  var args = <String, String>{};
  if (phoneNum != null) {
    args["phoneNumber"] = phoneNum;
  }

  if (signId != null) {
    args["signId"] = signId;
  }

  if (tempId != null) {
    args["tempId"] = tempId;
  }

  return await _channel.invokeMethod("getSMSCode", args);
}