DialogueCommandContext class

Context passed to every DialogueCommandHandler.

Constructors

DialogueCommandContext({required String name, required List<String> args, required String rawArgs})
const

Properties

args → List<String>
Arguments split on whitespace.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The command name exactly as registered (lowercased).
final
rawArgs → String
The full raw argument string (before splitting).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

arg(int index) → String?
Convenience accessor — returns args[index] or null.
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