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