Answers for "flutter get largest number of list"

0

flutter get largest number of list

import 'dart:math';
main(){
  print([1,2,8,6].reduce(max)); // 8
  print([1,2,8,6].reduce(min)); // 1
}
Posted by: Guest on September-10-2021

Code answers related to "flutter get largest number of list"

Browse Popular Code Answers by Language