on method
Apply the callback function to each change of the document.
Implementation
User on(Function(dynamic data, String key) cb) {
final user = _user.on(allowInterop(
(dynamic data, key, dynamic msg, dynamic ev) {
cb(jsToDart(data), key);
},
));
return User._(user);
}