getRunnerStep method

TestRunnerStep? getRunnerStep({
  1. required String id,
  2. required dynamic values,
})

Returns a TestRunnerStep for the given id and given set of values. This will first look in the registered custom steps and then fall back to the built in steps. If no step can be located for the given id then this will return null.

Implementation

TestRunnerStep? getRunnerStep({
  required String id,
  required dynamic values,
}) {
  TestRunnerStep? result;
  final builder = getBuilder(id);

  if (builder != null) {
    result = builder.testRunnerStepBuilder(values ?? {});
  }

  return result;
}