sort method

  1. @override
void sort([
  1. Comparator<E>? compare
])
override

This operation is not supported by an unmodifiable list.

Implementation

@override
void sort([Comparator<E>? compare]) {
  throw UnsupportedError('Cannot modify an unmodifiable list');
}