CandleData class Null safety

Constructors

CandleData({required int timestamp, required double? open, required double? close, required double? volume, double? high, double? low, List<double?>? trends})

Properties

close double?
The "close" price of this data point. It's acceptable to have null here for a few data points, but they must not all be null. If either open or close is null for a data point, it will appear as a gap in the chart.
final
hashCode int
The hash code for this object.
read-onlyinherited
high double?
The "high" price. If either one of high or low is null, we won't draw the narrow part of the candlestick for that data point.
final
low double?
The "low" price. If either one of high or low is null, we won't draw the narrow part of the candlestick for that data point.
final
open double?
The "open" price of this data point. It's acceptable to have null here for a few data points, but they must not all be null. If either open or close is null for a data point, it will appear as a gap in the chart.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
timestamp int
The timestamp of this data point, in milliseconds since epoch.
final
Data holder for additional trend lines, for this data point.
read / write
volume double?
The volume information of this data point.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

computeMA(List<CandleData> data, [int period = 7]) List<double?>