min method

int? min()

Returns the lowest value of all elements

Example:

[17, 13, 92].min(); // 13

Implementation

int? min() => minimumBy((a, b) => a.compareTo(b));