Answers for "remove item form list by index dart"

0

remove item form list by index dart

List myList = [1,2,3,4,5];
myList.removeAt(2);
Posted by: Guest on March-04-2022
0

remove item form list by index dart

List myList = [1,2,3,4,5];
bool result = myList.remove(2);
print(myList);  // [1, 3, 4, 5]
print(result);  // true
print(myList.length);  // 4
Posted by: Guest on March-04-2022

Code answers related to "remove item form list by index dart"

Code answers related to "Dart"

Browse Popular Code Answers by Language