xxxxxxxxxx
It seems you'd have to use one of two methods:
onDone method - and retain in a seperate variable whether the stream was closed, or..
cancel method - and await the future that signals that the StreamSubscription was canceled.
Don't know of any other way.