IntervalStats class

A class representing interval-based statistics for a financial instrument.

Annotations
  • @freezed

Constructors

IntervalStats({required num timestamp, required double priceChange, required double previousPrice, required double currentPrice})
Constructs a new IntervalStats instance.
factory
IntervalStats.fromJson(Map<String, dynamic> json)
Creates a new IntervalStats instance from a JSON object.
factory

Properties

copyWith → $IntervalStatsCopyWith<IntervalStats>
no setterinherited
currentPrice double
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
previousPrice double
no setterinherited
priceChange double
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp num
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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