IntervalStats constructor

IntervalStats({
  1. required num timestamp,
  2. required double priceChange,
  3. required double previousPrice,
  4. required double currentPrice,
})

Constructs a new IntervalStats instance.

Parameters:

  • timestamp – The timestamp for the interval in milliseconds.
  • priceChange – The price change of the financial instrument during the interval.
  • previousPrice – The price of the financial instrument at the beginning of the interval.
  • currentPrice – The price of the financial instrument at the end of the interval.

Implementation

factory IntervalStats({
  required num timestamp,
  required double priceChange,
  required double previousPrice,
  required double currentPrice,
}) = _IntervalStats;