reversed 属性

Iterable<E> reversed

此列表中对象的反向顺序的 Iterable

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

实现

Iterable<E> get reversed;