TestRun constructor

TestRun({
  1. String? name,
  2. CancellationToken? token,
  3. bool? isPersisted,
  4. void enqueued(
    1. TestItem
    )?,
  5. void started(
    1. TestItem
    )?,
  6. void skipped(
    1. TestItem
    )?,
  7. void failed(
    1. TestItem,
    2. Object, [
    3. num?
    ])?,
  8. void errored(
    1. TestItem,
    2. Object, [
    3. num?
    ])?,
  9. void passed(
    1. TestItem, [
    2. num?
    ])?,
  10. void appendOutput(
    1. String, [
    2. Location?,
    3. TestItem?
    ])?,
  11. void end()?,
})

Implementation

factory TestRun({
  _i2.String? name,
  _i3.CancellationToken? token,
  _i2.bool? isPersisted,
  void Function(_i3.TestItem)? enqueued,
  void Function(_i3.TestItem)? started,
  void Function(_i3.TestItem)? skipped,
  void Function(
    _i3.TestItem,
    _i2.Object, [
    _i2.num?,
  ])? failed,
  void Function(
    _i3.TestItem,
    _i2.Object, [
    _i2.num?,
  ])? errored,
  void Function(
    _i3.TestItem, [
    _i2.num?,
  ])? passed,
  void Function(
    _i2.String, [
    _i3.Location?,
    _i3.TestItem?,
  ])? appendOutput,
  void Function()? end,
}) =>
    TestRun._(
      name: name ?? _i6.undefined,
      token: token ?? _i6.undefined,
      isPersisted: isPersisted,
      enqueued: enqueued == null ? null : _i5.allowInterop(enqueued),
      started: started == null ? null : _i5.allowInterop(started),
      skipped: skipped == null ? null : _i5.allowInterop(skipped),
      failed: failed == null ? null : _i5.allowInterop(failed),
      errored: errored == null ? null : _i5.allowInterop(errored),
      passed: passed == null ? null : _i5.allowInterop(passed),
      appendOutput:
          appendOutput == null ? null : _i5.allowInterop(appendOutput),
      end: end == null ? null : _i5.allowInterop(end),
    );