HandlerScope class
A Handler Scope is used to define the scope and related information of a handler method.
Constructors
-
HandlerScope({Handler? handler, required bool predicate(Context ctx), required List<
UpdateType> types, bool isCommand = false, bool isRegExp = false, RegExp? pattern, bool isConversation = false, ID? chatId, ScopeOptions? options}) - Creates a new HandlerScope.
Properties
- chatId → ID?
-
Chat ID of the conversation.
final
- forked → bool
-
Whether the scope is forked or not.
no setter
- handler → Handler?
-
Handler
final
- hasCustomPredicate → bool
-
Whether the scope has a custom predicate
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCommand → bool
-
If it's a command handler, we set
args
to the parameter of the command.final - isConversation → bool
-
A flag that indicates if this is a conversation scope.
final
- isRegExp → bool
-
If it's a RegExp handler, we'll set the
MessageContext.matches
to the matches of the RegExp.final - name → String?
-
Name of the scope
no setter
- options → ScopeOptions?
-
Scope Options - Additional parameters for the scope.
final
- pattern → RegExp?
-
The RegExp pattern.
final
- predicate → bool Function(Context ctx)
-
Predicate to filter updates
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ List<
UpdateType> -
The update type
final
Methods
-
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