ToneDetectorController class

The ToneDetectorController can be utilized with the analyze function. The analyze function has a required inputText field. The aggresiveness field is optional. The aggressiveness value can be used for offline state or development purpose. The aggressiveness value is between 0.0 and 1.0. If no ApiKey and no aggressiveness value is provided, the default value is 0.5.

Constructors

ToneDetectorController()

Properties

expanded ValueNotifier<bool>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ToneDetectorState
getter/setter pair
stream ValueNotifier<ToneDetectorState>
getter/setter pair
toneAnalysis ToneAnalysis?
getter/setter pair

Methods

analyze(String inputText, {double? aggressiveness}) Future<void>
collapse() → void
expand() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toggle() → void
toString() String
A string representation of this object.
inherited

Operators

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