StockHistory class
Module required to access chart functions.
Constructors
- StockHistory({String? ticker, StockInterval interval = StockInterval.oneDay, StockRange range = StockRange.oneMonth})
Properties
- baseUrl → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interval → StockInterval
-
final
-
intervalMap
→ Map<
StockInterval, String> -
final
- range → StockRange
-
final
-
rangeMap
→ Map<
StockRange, String> -
final
- res ↔ Response
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ticker → String?
-
final
Methods
-
getChartQuotes(
{StockInterval interval = StockInterval.oneDay, StockRange period = StockRange.oneMonth}) → Future< StockChart> -
Returns a
StockChart
with initialized values based on the request. params:interval
- Takes in a StockInterval value. It specifies span of one tick of data. -
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