DEV Community

Cover image for List in Dart
Coder
Coder

Posted on

List in Dart

void main() {
  print('Om Namah Shivay');
//list
  List<int> ages = [1, 2, 3, 4, 5, 6, 7, 5, 4, 2];
  ages.remove(2);
  ages[5] = 45;

  print(ages.length);
  print(ages);
}

Enter fullscreen mode Exit fullscreen mode

I understood

Top comments (0)