ListQueue is a type of List based on Queue format. ListQueue keeps cyclic buffer of items within and it can increase size when large mount of data fills in. Flutter Dart ListQueue Example 1. Import dart:collection package in your flutter project main.dart file. import 'dart:collection'; 2. Creating a Integer type ListQueue . final testLQ = ListQueue<int>(); 3. Inserting items in ListQueue. testLQ.add(2); 4. Adding item at first position in ListQueue . queue.addFirst(1); 5. Adding item at the last position in ListQueue . testLQ.addLast(5); 6. Inserting multiple items in ListQueue. testLQ.addAll([3, 4, 6]); 7. Check ListQueue is Empty or Not . print(testLQ.isEmpty); 8. Check ListQueue length . print(testLQ.length); 9. Get first item of ListQueue. print(testLQ.first); 10. Get last item of ListQueue. print(testLQ.last); 11. Remove First item from ListQueue. testLQ.removeFirst() 12. Remove last item from ListQueue. testLQ.removeLast(); 13. Printing all items wit