prepend method

void prepend(
  1. List<Candle> candles
)

Prepends older candles to the front of the list (for lazy historical pagination). Candles must be sorted oldest-first and must all be older than the current first candle.

Implementation

void prepend(List<Candle> candles) {
  if (candles.isEmpty) return;
  _candles.insertAll(0, candles);
}