StockQuote class
Stock Quote contains several params including
- mode that tells what mode it was initialized in 0 indicates price parameters was initialized 1 indicates change parameters was initialized 2 indicates that volume parameters was initialized and 3 indicates that all the values were initialized.
It contains ticker, mode for meta data currentPrice, dayHigh, dayLow for price variables
regularMarketChange, fiftyTwoWeekLowChange, fiftyTwoWeekHighChange, twoHundredDayAverageChangePercent, regularMarketChangePercent, fiftyTwoWeekLowChangePercent, fiftyTwoWeekHighChangePercent, fiftyDayAverageChangePercent, twoHundredDayAverageChangePercent, regularMarketChangePercent for change variables
and regularMarketVolume, averageDailyVolume3Month, averageDailyVolume10Day for volume variables.
For every more, there is a parameter named metaData that contains stock metadata such as shortName, longName, displayName, etc. Refer StockMeta class for more info.
Constructors
- StockQuote({double? fiftyTwoWeekLowChangePercent, double? fiftyTwoWeekHighChangePercent, double? fiftyDayAverageChangePercent, double? twoHundredDayAverageChangePercent, double? regularMarketChangePercent, int? regularMarketVolume, int? averageDailyVolume3Month, int? averageDailyVolume10Day, double? regularMarketChange, double? fiftyTwoWeekLowChange, double? fiftyTwoWeekHighChange, double? fiftyDayAverageChange, double? twoHundredDayAverageChange, String? ticker, double? currentPrice, double? dayHigh, double? dayLow, StockMeta? metaData, int? mode})
-
StockQuote.fromJson(Map<
String, dynamic> json) -
factory
-
StockQuote.fromJsonLoadChange(Map<
String, dynamic> json) -
factory
-
StockQuote.fromJsonLoadPrice(Map<
String, dynamic> json) -
factory
-
StockQuote.fromJsonLoadVolume(Map<
String, dynamic> json) -
factory
Properties
- averageDailyVolume3Month → int?
-
final
- averageDailyVolume10Day → int?
-
final
- currentPrice → double?
-
final
- dayHigh → double?
-
final
- dayLow → double?
-
final
- fiftyDayAverageChange → double?
-
final
- fiftyDayAverageChangePercent → double?
-
final
- fiftyTwoWeekHighChange → double?
-
final
- fiftyTwoWeekHighChangePercent → double?
-
final
- fiftyTwoWeekLowChange → double?
-
final
- fiftyTwoWeekLowChangePercent → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metaData → StockMeta?
-
final
- mode → int?
-
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- regularMarketChange → double?
-
final
- regularMarketChangePercent → double?
-
final
- regularMarketVolume → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - ticker → String?
-
final
- twoHundredDayAverageChange → double?
-
final
- twoHundredDayAverageChangePercent → double?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited