onRun method
Implementation
@override
Future<void> onRun(Iterable<dynamic> parameters) {
var setupConfig = config;
if (setupConfig == null || setupConfig.timeout == null) {
setupConfig = (setupConfig ?? StepDefinitionConfiguration())
..timeout = timeout;
}
final methodParams = [
...parameters.take(_expectedParameterCount),
StepContext<TWorld>(
world,
reporter,
setupConfig,
),
];
return Function.apply(_onInvoke, methodParams) as Future<void>;
}