void max(Map<String, dynamic> map) { // map's values can be only a num or a DateTime map.values.forEach((value) { assert((value is double || value is DateTime)); }); _addExpression("\$max", map); }