on method
Subscribes to the given stream stream
.
If stream already has data set, it will be delivered to the callback
function.
Implementation
void on(String stream, void Function(Object)? callback) {
if (!_mStorage.exists(stream)) {
_mStorage.setCallback(stream, callback);
}
}