Excellent video Johan!!! I have struggled with collections in Dart when using a course on Udemy, however, this explanation just makes perfect sense, you need to develop a course and sell on Udemy :-) Thank you so much!
Cool. I've got a question, a confusion actually that I want to clear. I studied List under Dart data type from one source and Collection List from another source after a while so I'm confused now if they're the same thing or there's some difference. I mean Data Type List & Collection List, Is it the same thing?
Yes, same thing. Collections are collections of related data. Lists, Sets and Maps are examples. List, Set and Map are also data types to declare a variable as a List for example. So in List cars = ["Ford", "Honda",...]; cars is a List that contains a collection of String values (cars).
var newList = [0, '1', '2', '3']; //newList newList.insert(4, 4); //can add if list is object var list2 = ['1', '2', '3']; //list2 list2.insert(0, 0); //will error if list is not string