HookChain class
An ordered list of HookRegistrations for a single HookType, sorted by priority (lower values first).
Properties
- activeLength → int
-
Number of enabled hooks.
no setter
-
activeRegistrations
→ List<
HookRegistration> -
Only enabled registrations, sorted by priority.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether the chain has no hooks.
no setter
- length → int
-
Number of registered hooks.
no setter
-
registrations
→ List<
HookRegistration> -
All registrations, sorted by priority.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → HookType
-
final
Methods
-
add(
HookRegistration registration) → void - Add a registration, maintaining priority sort order.
-
clear(
) → void - Remove all registrations.
-
find(
String id) → HookRegistration? - Find a registration by ID.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String id) → bool - Remove a registration by ID. Returns true if found and removed.
-
removeBySource(
String source) → int - Remove all registrations from a given source.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited