copyWith method

TestCase<INPUT, OUTPUT> copyWith(
  1. ParameterizedCallback<INPUT, OUTPUT> action
)

copyWith is used internally by the TestGroup.

Implementation

TestCase<INPUT, OUTPUT> copyWith(
  ParameterizedCallback<INPUT, OUTPUT> action,
) {
  return TestCase<INPUT, OUTPUT>(
    when: this.when,
    then: this.then,
    input: this.input,
    matcher: this.matcher,
    action: action,
    testOn: this.testOn,
    timeout: this.timeout,
    skip: this.skip,
    tags: this.tags,
    onPlatform: this.onPlatform,
    retry: this.retry,
  );
}