BuddyService class

Service that owns tip generation, context tracking, and the built-in tip library. Stateless with respect to Flutter — can be used outside the widget tree.

Constructors

BuddyService({BuddyConfig config = const BuddyConfig()})

Properties

allTips List<String>
The full built-in tips library.
no setter
config BuddyConfig
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateSuggestion(UserAction context) BuddySuggestion?
Generate a context-aware suggestion, or null if nothing is relevant or we have exceeded the session cap.
getEncouragement() String
Return a random encouraging message.
getTipForContext(UserAction context) String?
Return a tip string for the given context, or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onUserAction(UserAction action) → void
Record a user action so future suggestions can be context-aware.
toString() String
A string representation of this object.
inherited

Operators

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