@@ -250,18 +250,18 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
250
250
/// DatabaseReference to the Query's location.
251
251
DatabaseReference get ref => DatabaseReference .getInstance (jsObject.ref);
252
252
253
- Stream <QueryEvent > _onValue (String appName, int hashCode) => _createStream (
253
+ Stream <QueryEvent > _onValue (String appName, String hashCode) => _createStream (
254
254
'value' ,
255
255
appName,
256
256
hashCode,
257
257
);
258
258
259
259
/// Stream for a value event. Event is triggered once with the initial
260
260
/// 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) =>
262
262
_onValue (appName, hashCode);
263
263
264
- Stream <QueryEvent > _onChildAdded (String appName, int hashCode) =>
264
+ Stream <QueryEvent > _onChildAdded (String appName, String hashCode) =>
265
265
_createStream (
266
266
'child_added' ,
267
267
appName,
@@ -270,10 +270,10 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
270
270
271
271
/// Stream for a child_added event. Event is triggered once for each
272
272
/// 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) =>
274
274
_onChildAdded (appName, hashCode);
275
275
276
- Stream <QueryEvent > _onChildRemoved (String appName, int hashCode) =>
276
+ Stream <QueryEvent > _onChildRemoved (String appName, String hashCode) =>
277
277
_createStream (
278
278
'child_removed' ,
279
279
appName,
@@ -282,10 +282,10 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
282
282
283
283
/// Stream for a child_removed event. Event is triggered once every time
284
284
/// a child is removed.
285
- Stream <QueryEvent > onChildRemoved (String appName, int hashCode) =>
285
+ Stream <QueryEvent > onChildRemoved (String appName, String hashCode) =>
286
286
_onChildRemoved (appName, hashCode);
287
287
288
- Stream <QueryEvent > _onChildChanged (String appName, int hashCode) =>
288
+ Stream <QueryEvent > _onChildChanged (String appName, String hashCode) =>
289
289
_createStream (
290
290
'child_changed' ,
291
291
appName,
@@ -295,9 +295,9 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
295
295
/// Stream for a child_changed event. Event is triggered when the data
296
296
/// stored in a child (or any of its descendants) changes.
297
297
/// 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) =>
299
299
_onChildChanged (appName, hashCode);
300
- Stream <QueryEvent > _onChildMoved (String appName, int hashCode) =>
300
+ Stream <QueryEvent > _onChildMoved (String appName, String hashCode) =>
301
301
_createStream (
302
302
'child_moved' ,
303
303
appName,
@@ -306,7 +306,7 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
306
306
307
307
/// Stream for a child_moved event. Event is triggered when a child's priority
308
308
/// 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) =>
310
310
_onChildMoved (appName, hashCode);
311
311
312
312
/// Creates a new Query from a [jsObject] .
@@ -403,13 +403,13 @@ class Query<T extends database_interop.QueryJsImpl> extends JsObjectWrapper<T> {
403
403
);
404
404
}
405
405
406
- String _streamWindowsKey (String appName, String eventType, int hashCode) =>
406
+ String _streamWindowsKey (String appName, String eventType, String hashCode) =>
407
407
'flutterfire-${appName }_${eventType }_${hashCode }_snapshot' ;
408
408
409
409
Stream <QueryEvent > _createStream (
410
410
String eventType,
411
411
String appName,
412
- int hashCode,
412
+ String hashCode,
413
413
) {
414
414
late StreamController <QueryEvent > streamController;
415
415
unsubscribeWindowsListener (_streamWindowsKey (appName, eventType, hashCode));
0 commit comments