
In this guide, we will discuss the List.length Method in Dart Programming Language. Returns the size of the list.
Syntax
List.length
Example
void main() { var lst = new List(); lst.add(12); lst.add(13); print("The length of the list is : ${lst.length}"); }
It will produce the following output −.
The length of the list is : 2
Next Topic : Click Here
Pingback: Dart Programming - List.isNotEmpty Method | Adglob Infosystem Pvt Ltd
Pingback: Dart Programming - Lists | Adglob Infosystem Pvt Ltd