hasThread method Null safety

bool hasThread(
  1. int id
)

Checks if the given id belongs to a thread.

Implementation

bool hasThread(int id) {
  return _sequencesById[id] != null;
}