getThread method

ValueStream<Thread?> getThread(
  1. Authorperm id
)

Implementation

ValueStream<Thread?> getThread(Authorperm id) {
  final BehaviorSubject<Thread?> controller;
  if (_postStreamControllers.containsKey(id)) {
    controller = _threadStreamControllers[id]!;
  } else {
    controller = BehaviorSubject<Thread?>();
    _threadStreamControllers[id] = controller;

    unawaited(_fetchAndAddThread(id));
  }

  return controller;
}