how to print content of list object in dart code example Example: dart print item # of a list main() { var list = [1,2,3]; print( list[1] ); // 2 }