maximum<U> abstract method Null safety

Future<U?> maximum<U>(
  1. U? selector(
    1. T object
    )
)

Finds the maximum of some ManagedObject property.

selector identifies the property being evaluated, e.g.

    var query = Query<User>();
    var oldestUser = await query.reduce.maximum((user) => user.age);

The property must be an attribute and its type must be String, int, double, or DateTime.

Implementation

Future<U?> maximum<U>(U? Function(T object) selector);