getClientById method

MtprotoClient? getClientById(
  1. int clientId
)

Implementation

MtprotoClient? getClientById(int clientId) {
  for (var i = 0; i < clients.length; i++) {
    MtprotoClient tdlibClient = clients[i];
    if (tdlibClient.client_id == clientId) {
      return tdlibClient;
    }
  }
  return null;
}