QueryNumAggregation<T extends num?> extension
Aggregation operations for number queries.
- on
-
- IsarQuery<
T?>
- IsarQuery<
Methods
-
average(
) → double - Calculates the average of all values. This only works for numeric values.
-
averageAsync(
) → Future< double> - Calculates the average of all values. This only works for numeric values.
-
max(
) → T? - Finds the largest value matching the query.
-
maxAsync(
) → Future< T?> - Finds the largest value matching the query.
-
min(
) → T? - Finds the smallest value matching the query. Null values are considered smaller than all other values.
-
minAsync(
) → Future< T?> - Finds the smallest value matching the query. Null values are considered smaller than all other values.
-
sum(
) → T - Calculates the sum of all values. This only works for numeric values.
-
sumAsync(
) → Future< T> - Calculates the sum of all values. This only works for numeric values.