FirestoreList<T> constructor
FirestoreList<T> ({
- required Query<
T> query, - DocumentCallback<
T> ? onDocumentAdded, - DocumentCallback<
T> ? onDocumentRemoved, - DocumentCallback<
T> ? onDocumentChanged, - QueryCallback<
T> ? onLoaded, - ValueCallback<
T> ? onValue, - ErrorCallback? onError,
- FilterCallback<
T> ? filter, - bool linear = false,
- 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),
);
}