FirestoreList<T> constructor

FirestoreList<T>({
  1. required Query<T> query,
  2. DocumentCallback<T>? onDocumentAdded,
  3. DocumentCallback<T>? onDocumentRemoved,
  4. DocumentCallback<T>? onDocumentChanged,
  5. QueryCallback<T>? onLoaded,
  6. ValueCallback<T>? onValue,
  7. ErrorCallback? onError,
  8. FilterCallback<T>? filter,
  9. bool linear = false,
  10. bool debug = false,
})

Implementation

FirestoreList({
  required this.query,
  this.onDocumentAdded,
  this.onDocumentRemoved,
  this.onDocumentChanged,
  this.onLoaded,
  this.onValue,
  this.onError,
  this.filter,
  this.linear = false,
  this.debug = false,
}) {
  listen(
    query.snapshots(),
    _onData,
    onError: (Object error) => _onError(error as Exception),
  );
}