ExchangeVolumeData.fromArray constructor
ExchangeVolumeData.fromArray(
- List array
Constructs an instance of ExchangeVolumeData from an array.
The array
parameter is a list where the first element is expected to be
a date and the second element is expected to be a volume.
Implementation
ExchangeVolumeData.fromArray(List<dynamic> array)
: this.date = Convert.toDateTime(array[0], Helpers.defaultDateTime()),
this.volume = Convert.toDouble(array[1], 0);