reverse property

List<bool> get reverse

Reverses the boolean values in the list.

This method iterates through each element in the list and flips its value. If the element is true, it becomes false, and vice versa. A new list with the reversed values is returned.

Returns:

  • A new list with the boolean values reversed.

Implementation

List<bool> get reverse => map((bool b) => !b).toList();