streamOf static method
Filters the main event stream with the mutation given as parameter. This can be used to perform some callbacks inside widgets after some mutation executed.
Implementation
static Stream<VxMutation> streamOf(Type mutation) {
return _events.stream.where((e) => e.runtimeType == mutation);
}