getAccount method

Stream<Account?> getAccount(
  1. String name
)

Implementation

Stream<Account?> getAccount(String name) {
  final BehaviorSubject<Account?> controller;
  if (_accountStreamControllers.containsKey(name)) {
    controller = _accountStreamControllers[name]!;
  } else {
    controller = BehaviorSubject<Account?>();
    _accountStreamControllers[name] = controller;

    unawaited(_fetchAndAddAccount(name));
  }

  return controller.asBroadcastStream();
}