xxxxxxxxxx
double? points = await firestore.collection('points')
.aggregate(sum('value'))
.get()
.then((AggregateQuerySnapshot aggregateSnapshot) {
return aggregateSnapshot.getSum('value');
});