getCallByUserId method

CallSession? getCallByUserId(
  1. String userId
)

Implementation

CallSession? getCallByUserId(String userId) {
  final value = calls.where((item) => item.remoteUser!.id == userId);
  if (value.isNotEmpty) {
    return value.first;
  }
  return null;
}