You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lots to do to upgrade to the latest firebase. This one has me stumped. The Collection method:
Stream<List> streamData() {
return ref.snapshots().map((list) => list.documents.map((doc) => Global.modelsT as T) );
}
gives:
Expected a value of type 'Map<dynamic, dynamic>', but got one of type '() => Map<String, dynamic>'
The text was updated successfully, but these errors were encountered:
Hello, so for this project specifically.....if you are trying to update to the current version of firebase it is important to place the parenthesis for data method in your Globals.dart
Lots to do to upgrade to the latest firebase. This one has me stumped. The Collection method:
Stream<List> streamData() {
return ref.snapshots().map((list) => list.documents.map((doc) => Global.modelsT as T) );
}
gives:
Expected a value of type 'Map<dynamic, dynamic>', but got one of type '() => Map<String, dynamic>'
The text was updated successfully, but these errors were encountered: