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)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay