min method Null safety

dynamic min(
  1. List list
)

Implementation

min(List list) {
  var minVal =
      flatten(list).reduce((curr, next) => curr < next ? curr : next);
  return minVal;
}