EvaluationHook class
A hook declaring only its supported stages, with typed stage arguments. Registering this hook opts its input views into strict structured snapshots. Legacy Hook/BaseHook value behavior remains unchanged; invalid snapshot data is retained as diagnostic references during error/finally cleanup.
Constructors
- EvaluationHook({required HookMetadata metadata, BeforeEvaluationHook? before, AfterEvaluationHook? after, ErrorEvaluationHook? error, AfterEvaluationHook? finallyAfter})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- metadata → HookMetadata
-
Hook metadata and configuration
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stages
→ Set<
HookStage> -
final
Methods
-
after(
HookContext context) → Future< void> -
After successful evaluation
override
-
before(
HookContext context) → Future< Map< String, dynamic> ?> -
Before flag evaluation.
override
-
error(
HookContext context) → Future< void> -
When an error occurs
override
-
finally_(
HookContext context, EvaluationDetails? details, [HookHints? hints]) → Future< void> -
Always executed at the end, now with evaluation details parameter
override
-
finallyAfter(
HookContext context, EvaluationDetails details, [HookHints? hints]) → Future< void> - Dart spelling of the specification's finally stage.
-
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