closeStreamsSynchronously property
Whether resources associated with a query stream should be closed synchronously after all listeners have cancelled their stream subscription.
By default, we keep streams alive for an additional event loop iteration since the same query might be subscribed again and we want to re-use its subscription. For Flutter tests in particular, it's recommended to enable this option as Flutter asserts no pending async work remains after a test has finished.
Implementation
@protected
bool closeStreamsSynchronously;