you can do like this.
final CollectionReference yourCollection =
Firestore.instance.collection('CollectionName');
Stream<List<YourModel>> getFunctoinName() {
return yourCollection.orderBy('uniqueIndex',descending: true)
.snapshots().map((snapShot) => snapShot.documents
.map((document) => YourModel.fromMap(document.data))
.toList());
}