CircularBuffer<T> constructor

CircularBuffer<T>(
  1. List<T> store
)

A circular buffer that uses the fixed-size list store to store the elements. The initial elements of store are ignored.

Example usages:

final buf = CircularBuffer(Float64List(10));
CircularBuffer<String> buf2 = CircularBuffer(List.filled(10, ''));

Implementation

CircularBuffer(List<T> store) : _store = store;