WeaverSwitchScope class

Defines a switch scope: several labeled child entry points, only one active at a time.

Use with multiple OnEnterScope methods, each with a distinct OnEnterScope.name. weaver_builder generates a handler and a scope type with one factory per child (similar to an enum of modes). See WeaverScope for ordinary single-entry scopes.

Constructors

WeaverSwitchScope({required String name})
Creates a WeaverSwitchScope annotation with the given name.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
Parent scope name (used for registration and leaveScope).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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