onInit method
void
onInit()
Implementation
void onInit() {
_streamSubscription = stream.listen(
(_) {
if (!_isStreamPaused) {
update();
}
},
onError: ((error, stackTrace) {}),
onDone: (() {
_streamSubscription?.cancel();
}),
);
}