getClientByUserId method

MtprotoClient? getClientByUserId(
  1. int clientUserId
)

Implementation

MtprotoClient? getClientByUserId(int clientUserId) {
  for (var i = 0; i < length; i++) {
    MtprotoClient tdlibClient = this[i];
    if (tdlibClient.client_tg_user_id == clientUserId) {
      return tdlibClient;
    }
  }
  return null;
}