max property

T get max

Returns the maximum value in the list.

Example usage:

void main() {
  List<int> numbers = [5, 3, 8, 1, 4];
  print(numbers.max); // Output: 8
}

Implementation

T get max => _sorted.last;