StockSentiment class

StockSentiment class initialized with String ticker ticker is a space seperated string with different stock tickers

Constructors

StockSentiment(String tickers)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tickers String
getter/setter pair

Methods

getArticleContent(String url) Future<String>
getArticleContent gets the actual articles content unless status code is not 200
getDailySentiment(Map<String, List<Headline>> map) Map<String, Map<DateTime, SentimentResult>>?
getDailySentiment method returns a sentiment result for each day worth of headlines
getHeadlines(int days) Future<Map<String, List<Headline>>?>
getHeadlines method gets all of the headlines for the given tickers returns null if any of the tickers are invalid
getSingleSentiment(String text) Map<String, dynamic>
getSingleSentiment takes a String of text to have sentiment analysis ran on returns score and other mapped data about the sentiment
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