Dart Programming – List.length Method

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
Dart Programming list.length method

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

This Post Has 2 Comments

Leave a Reply