getInProgressUserInfoTransfers method

Future<List<UserInfoTransfer>> getInProgressUserInfoTransfers()

Retrieve pending user info transfers.

Call this method to retrieve all on progress user info transfers.

You can cancel any transfer by calling cancel method of UserInfoTransfer

Implementation

Future<List<UserInfoTransfer>> getInProgressUserInfoTransfers() {
  return channel
      .invokeMethod("getOnProgressUserInfoTransfers")
      .then((transfersJson) {
    return (transfersJson as List? ?? []).map((transferJson) {
      return _mapIdAndConvertUserInfoTransfer(
          transferJson.map<String, dynamic>(
              (key, value) => MapEntry(key.toString(), value)));
    }).toList();
  });
}