Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

list dart

var fixedLengthList = List<int>.filled(5, 0);
fixedLengthList.length = 0;  // Error
fixedLengthList.add(499);    // Error
fixedLengthList[0] = 87;
var growableList = [1, 2];
growableList.length = 0;
growableList.add(499);
growableList[0] = 87;
Source by api.dart.dev #
 
PREVIOUS NEXT
Tagged: #list #dart
ADD COMMENT
Topic
Name
6+1 =