Dart Programming – List.reversed Method

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

In this guide, we will discuss List.reversed Method in Dart Programming Language. Returns an iterable object containing the list values in the reverse order.

Syntax

List.reversed 

Example

void main() { 
   var lst = new List(); 
   lst.add(12); 
   lst.add(13); 
   print("The list values in reverse order: ${lst.reversed}"); 
}  

It will produce the following output −

The list values in reverse order: (13, 12) 

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply