minimum<U> method Null safety

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

Finds the minimum of some ManagedObject property.

selector identifies the property being evaluated, e.g.

    var query = new Query<User>();
    var youngestUser = await query.reduce.minimum((user) => user.age);

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

Implementation

Future<U?> minimum<U>(U? selector(T object));