@@ -250,18 +250,18 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
250250 /// DatabaseReference to the Query's location.
251251 DatabaseReference get ref => DatabaseReference .getInstance (jsObject.ref);
252252
253- Stream <QueryEvent > _onValue (String appName, int hashCode) => _createStream (
253+ Stream <QueryEvent > _onValue (String appName, String hashCode) => _createStream (
254254 'value' ,
255255 appName,
256256 hashCode,
257257 );
258258
259259 /// Stream for a value event. Event is triggered once with the initial
260260 /// data stored at location, and then again each time the data changes.
261- Stream <QueryEvent > onValue (String appName, int hashCode) =>
261+ Stream <QueryEvent > onValue (String appName, String hashCode) =>
262262 _onValue (appName, hashCode);
263263
264- Stream <QueryEvent > _onChildAdded (String appName, int hashCode) =>
264+ Stream <QueryEvent > _onChildAdded (String appName, String hashCode) =>
265265 _createStream (
266266 'child_added' ,
267267 appName,
@@ -270,10 +270,10 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
270270
271271 /// Stream for a child_added event. Event is triggered once for each
272272 /// initial child at location, and then again every time a new child is added.
273- Stream <QueryEvent > onChildAdded (String appName, int hashCode) =>
273+ Stream <QueryEvent > onChildAdded (String appName, String hashCode) =>
274274 _onChildAdded (appName, hashCode);
275275
276- Stream <QueryEvent > _onChildRemoved (String appName, int hashCode) =>
276+ Stream <QueryEvent > _onChildRemoved (String appName, String hashCode) =>
277277 _createStream (
278278 'child_removed' ,
279279 appName,
@@ -282,10 +282,10 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
282282
283283 /// Stream for a child_removed event. Event is triggered once every time
284284 /// a child is removed.
285- Stream <QueryEvent > onChildRemoved (String appName, int hashCode) =>
285+ Stream <QueryEvent > onChildRemoved (String appName, String hashCode) =>
286286 _onChildRemoved (appName, hashCode);
287287
288- Stream <QueryEvent > _onChildChanged (String appName, int hashCode) =>
288+ Stream <QueryEvent > _onChildChanged (String appName, String hashCode) =>
289289 _createStream (
290290 'child_changed' ,
291291 appName,
@@ -295,9 +295,9 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
295295 /// Stream for a child_changed event. Event is triggered when the data
296296 /// stored in a child (or any of its descendants) changes.
297297 /// Single child_changed event may represent multiple changes to the child.
298- Stream <QueryEvent > onChildChanged (String appName, int hashCode) =>
298+ Stream <QueryEvent > onChildChanged (String appName, String hashCode) =>
299299 _onChildChanged (appName, hashCode);
300- Stream <QueryEvent > _onChildMoved (String appName, int hashCode) =>
300+ Stream <QueryEvent > _onChildMoved (String appName, String hashCode) =>
301301 _createStream (
302302 'child_moved' ,
303303 appName,
@@ -306,7 +306,7 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
306306
307307 /// Stream for a child_moved event. Event is triggered when a child's priority
308308 /// changes such that its position relative to its siblings changes.
309- Stream <QueryEvent > onChildMoved (String appName, int hashCode) =>
309+ Stream <QueryEvent > onChildMoved (String appName, String hashCode) =>
310310 _onChildMoved (appName, hashCode);
311311
312312 /// Creates a new Query from a [jsObject] .
@@ -403,13 +403,13 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
403403 );
404404 }
405405
406- String _streamWindowsKey (String appName, String eventType, int hashCode) =>
406+ String _streamWindowsKey (String appName, String eventType, String hashCode) =>
407407 'flutterfire-${appName }_${eventType }_${hashCode }_snapshot' ;
408408
409409 Stream <QueryEvent > _createStream (
410410 String eventType,
411411 String appName,
412- int hashCode,
412+ String hashCode,
413413 ) {
414414 late StreamController <QueryEvent > streamController;
415415 unsubscribeWindowsListener (_streamWindowsKey (appName, eventType, hashCode));
0 commit comments