Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart list generate

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