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
{{ message }}
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
I can get a null from this snapshot data when there is nothing at the document node i'm calling get() on. However snapshot.data() is not labeled as an optional.
final snapshot = await StorageCloudWeb.pathHelper.userBrowseInfoDocumentReference(userId).get().catchError((_) {});
final data = snapshot.data();
// data = null
using: firebase: ^9.0.1 (labeled as null safe)
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.3.1 20E241 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.58.0)
[✓] Connected device (2 available)
The text was updated successfully, but these errors were encountered:
I can get a null from this snapshot data when there is nothing at the document node i'm calling get() on. However snapshot.data() is not labeled as an optional.
final snapshot = await StorageCloudWeb.pathHelper.userBrowseInfoDocumentReference(userId).get().catchError((_) {});
final data = snapshot.data();
// data = null
using: firebase: ^9.0.1 (labeled as null safe)
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.3.1 20E241 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.58.0)
[✓] Connected device (2 available)
The text was updated successfully, but these errors were encountered: