Dart – List Length. To get the length of a List in Dart, read its length property . length property is read-only for fixed length lists and writable for growable lists.
Read moreHow do I print a list in console flutter?
you can simply use print(‘whatever you want to print’) same as console.
Read more