Sentiment class

Represents the feeling associated with the entire text or entities in the text.

Constructors

Sentiment.new({double? magnitude, double? score})
Sentiment.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
magnitude double?
A non-negative number in the [0, +inf] range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double?
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
getter/setter pair

Methods

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

Operators

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