Dart Tutorial #29 - Collections and Iterator in Dart Programming
ฝัง
- เผยแพร่เมื่อ 4 พ.ค. 2022
- Dart Tutorial #29 - Collections and Iterator in Dart Programming
In this video by Programming for Beginners we will see Collections and Iterator in Dart Programming, using Dart Tutorial videos. We can learn Dart Programming language to make web applications or mobile applications using flutter framework. Also we can make single-page web applications using Dart programming.
Dart Collections include:
1. List
2. Set
3. Maps
4. Queue
Iterating Collections:
The Iterator class enables easy collection traversal. Every collection has an iterator property. This property returns an iterator that points to the objects in the collection.
Example:
import 'dart:collection';
void main() {
Queue numQ = new Queue();
numQ.addAll([100,200,300]);
Iterator i= numQ.iterator;
while(i.moveNext()) {
print(i.current);
}
}
Dart Tutorial Playlist:
• Dart Tutorial
VS Code Editor:
code.visualstudio.com/download
Online Dartpad:
dartpad.dartlang.org/
Dart SDK:
www.dartlang.org/install/arch...
TH-cam Gears:
Microphone: amzn.to/3iIk5K3
Mouse: amzn.to/35irmNF
Laptop: amzn.to/3iG0jyD
#Dart #Tutorial #Programming
============================
LIKE | SHARE | COMMENT | SUBSCRIBE
Thanks for watching :)
Nice and Simple
Thanks 👍