ScopeOptions class
Represents additional options that can be passed to create Handler Scope
Constructors
-
ScopeOptions({bool forked = false, String? name, FutureOr<
bool> customPredicate(Context ctx)?}) -
Constructs a
ScopeOption
.const -
ScopeOptions.forked({String? name, FutureOr<
bool> customPredicate(Context ctx)?}) -
Constructs a
ScopeOption
that is forked. This scope will allow the processing of subsequent handler scope as well.const
Properties
-
customPredicate
→ (FutureOr<
bool> Function(Context ctx)?) -
Custom Predicate Method
final
- forked → bool
-
Whether the scope is forked.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
Name of the Handler Scope.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? name, bool? forked, FutureOr< bool> customPredicate(Context ctx)?}) → ScopeOptions - Creates a copy of this ScopeOptions object with potentially modified properties. Provides options to override the following properties:
-
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