BotCommandParser class

Command Parser

Constructors

BotCommandParser(String command, String? botUsername, {required List<String> args})
Basic constructor

Properties

args List<String>
Args
getter/setter pair
botUsername String?
BotUsername
getter/setter pair
command String
Command
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

Methods

isToBot(String targetBotUsername) bool
True if is to bot
matchesCommand(String command, {String? username}) bool
MatchesCommand
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

Static Methods

fromMessage(Message message) BotCommandParser?
Command Parser from message