onEvent method
Listen event
Implementation
void onEvent(void Function(String? value) action) {
streamer.stream.listen((value) {
action(value);
});
}
Listen event
void onEvent(void Function(String? value) action) {
streamer.stream.listen((value) {
action(value);
});
}