HookManager class

Manager for hook registration and execution

Constructors

HookManager({Duration defaultTimeout = const Duration(seconds: 5)})

Properties

hashCode → int
The hash code for this object.
no setterinherited
registeredHooks → List<Hook>
Registration order for SDK evaluations; legacy priorities apply only to direct standalone manager execution.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addHook(Hook hook) → void
Register a new hook
executeHooks(HookStage stage, String flagKey, Map<String, dynamic>? context, {dynamic result, Exception? error, EvaluationDetails? evaluationDetails, HookHints? hints, ClientMetadata? clientMetadata, ProviderMetadata? providerMetadata, dynamic defaultValue, FlagValueType? flagValueType, HookData? hookData, Iterable<Hook> additionalHooks = const [], List<Hook>? executionHooks, void onContextChanged(Map<String, dynamic>)?}) → Future<Map<String, dynamic>>
Execute hooks for a specific stage
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeHook(Hook hook) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited