sum<U extends num> abstract method
Null safety
- U? selector(
- T object
Finds the sum of some ManagedObject property.
selector
identifies the property being evaluated, e.g.
var query = new Query<User>();
var yearsLivesByAllUsers = await query.reduce.sum((user) => user.age);
The property must be an attribute and its type must be an num, i.e. int or double.
Implementation
Future<U?> sum<U extends num>(U? Function(T object) selector);