Skip to content
pubscout

firestore_ref

0.18.0, released 9 days ago by mono0926.com

Cross-platform Firestore type-safe reference and document wrapper.

WASM-ready
$ flutter pub add firestore_ref
Source repository

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.

Works with

Packages commonly used together with firestore_ref: ones it builds on, ones built on it, and its own family.