postcondition method
Future<bool>
postcondition(
- CommandContext<
State, System> context, - State state,
- dynamic result
override
Returns true if postcondition of the command is satisfied.
Implementation
@override
Future<bool> postcondition(
CommandContext<State, System> context,
State state,
dynamic result,
) {
return asyncCallOr(
() => _postcondition?.call(
state,
context.currentValue as T,
result as R,
),
true,
);
}