toList method

List<T> toList()

Implementation

List<T> toList() {
  return List.generate(_count, (i) => _buffer[(_start + i) % maxSize]!);
}