Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

generate list flutter

List<int>.generate(3, (int index) => index * index); // [0, 1, 4]
Source by api.flutter.dev #
 
PREVIOUS NEXT
Tagged: #generate #list #flutter
ADD COMMENT
Topic
Name
5+1 =