https://api.dart.dev/stable/3.0.2/dart-async/StreamSubscription/onDone.html
onDone method - StreamSubscription class - dart:async library - Dart API
API docs for the onDone method from the StreamSubscription class, for the Dart programming language.
dart asyncmethodstreamsubscriptionclasslibrary