Answers for "how to use a list in flutter dart"

2

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;
Posted by: Guest on April-15-2021

Code answers related to "how to use a list in flutter dart"

Code answers related to "Dart"

Browse Popular Code Answers by Language