getSum method
The result of AggregateField.sum over field (a String or a FieldPath): an int for a sum of
integers that fits in 64 bits, a double otherwise, or null (for example a sum over no numeric value).
A Decimal128Value result (Enterprise edition) is converted to the closest double. Throws an
ArgumentError if the query did not ask for this sum.
Implementation
num? getSum(Object field) => _getNumber(AggregateField.sum(field));