firestore_ref
0.18.0, released 9 days ago by mono0926.com
Cross-platform Firestore type-safe reference and document wrapper.
What it does
Provides type-safe helper wrappers for Cloud Firestore references and documents. Allows writing organized code with support for cross-platform access.
AI-written summary of version 0.18.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want type-safe operations on Cloud Firestore documents and collections.
- You need structured pagination and stream helpers for Firestore data.
Skip it when
- You prefer using the official cloud_firestore API directly without any wrapper abstractions.
- You are not using Firebase/Cloud Firestore in your project.
Strengths
- Enforces stronger typing for Firestore documents and collections.
- Cross-platform support including web.
Weaknesses
- Adds an abstraction layer over the official cloud_firestore package.
- Requires learning a custom API for document and collection references.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 10
Requires initializing Firebase using firebase_core and configuring cloud_firestore.
Cross-platform(including web) Firestore type-safe wrapper.Alternatives
Packages that do the same job and could replace firestore_ref.
- cloud_firestore_web
The web implementation of cloud_firestore.
82Compare - firestore_odm
Type-safe Firestore ODM for Flutter and Dart with code generation.
71Compare - firestore_cache
Fetch Firestore documents with read from cache first then server based on a timestamp field.
75Compare - flamingo
Firebase Firestore model framework library with code generation for Dart.
46Compare
Works with
Packages commonly used together with firestore_ref: ones it builds on, ones built on it, and its own family.
- json_annotationfirestore_ref depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- rxdartfirestore_ref depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- firebase_corefirestore_ref depends on itFlutter plugin that initializes Firebase and allows multiple Firebase app connections.
- quiverfirestore_ref depends on itA set of utility libraries for Dart containing collections, async tools, and testing helpers.
- cloud_firestorefirestore_ref depends on itFlutter plugin for Cloud Firestore noSQL database with live synchronization.
- simple_loggerfirestore_ref depends on itSimple logger with optional caller info and custom formatting
- disposable_providerfirestore_ref depends on itA thin wrapper around Provider that automatically calls dispose.
- route_observer_mixinSame familyMixin and provider that expose RouteObserver callbacks like didPush and didPop for easy use.