reversed property

  1. @override
Iterable<T> get reversed
override

An Iterable of the objects in this list in reverse order.

final numbers = <String>['two', 'three', 'four'];
final reverseOrder = numbers.reversed;
print(reverseOrder.toList()); // [four, three, two]

Implementation

@override
Iterable<T> get reversed =>
    _list.getRange(_start, _end).toList(growable: false).reversed;