getPost method

ValueStream<Post?> getPost(
  1. Authorperm id
)

Implementation

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

    unawaited(_fetchAndAddPost(id));
  }

  return controller;
}