accountUpdates method

  1. @override
Stream<List<FinancialAccount>> accountUpdates()
override

A stream that emits the full updated account list whenever accounts are added, modified, or removed.

Implementation

@override
Stream<List<FinancialAccount>> accountUpdates() {
  return _accountEvents
      .receiveBroadcastStream()
      .map((event) => (event as List).cast<Map<Object?, Object?>>().map(FinancialAccount.fromMap).toList());
}