reverse a list dart code example
Example 1: flutter reverse list
List<String> reversedAnimals = animals.reversed.toList();
Example 2: how to reverse a list in dart
void main(){
//a list
var myList = [24, 56, 84, 92];
//intialize a new list from iterable to the items of reversed order
var reversedList = new List.from(myList.reversed);
print(reversedList);
}
Example 3: dart reverse list
x.reversed.toList()