CoinDataPoint.fromArray constructor

CoinDataPoint.fromArray(
  1. List dataPoint
)

Implementation

CoinDataPoint.fromArray(List<dynamic> dataPoint) {
  date = DateTime.fromMillisecondsSinceEpoch(dataPoint[0]);
  price = StaticHelpers.checkDouble(dataPoint[1],-1.0);
}