easy_firestore 0.0.4 copy "easy_firestore: ^0.0.4" to clipboard
easy_firestore: ^0.0.4 copied to clipboard

A helper package to make firestore easier to use.

Firestore Helper #

A helper package to make the firestore easy.

Document #

Update the widget when docuemnt changes.

Document(
  collectionName: 'settings',
  id: id,
  builder: (model) {
    return builder(model);
  },
);

DocumentModel #

The data model of the doucment.

Setting(
  id: 'system',
  builder: (DocumentModel doc) {
    return ListTile(
      title: Text('System count: ${doc.value<int>('count') ?? 0}'),
      onTap: () {
        doc.increment('count');
      },
    );
  },
),

FirestoreLimitedListView #

Purpose: To display the limited numbrer of document as a listview.

FirestoreLimitedQueryBuilder #

Purpose: To get the limited number of document by query