withCallback method
Creates a new copy of StepInput with the specified executable fn attached.
Implementation
StepInput withCallback(Function fn) {
return StepInput(
description: description,
callback: fn as Function?,
params: params,
exceptionType: exceptionType,
exceptionMessage: exceptionMessage,
);
}