BenchDefinition constructor

BenchDefinition({
  1. FutureOr<void> fn(
    1. BenchContext
    )?,
  2. String? name,
  3. bool? ignore,
  4. String? group,
  5. bool? baseline,
  6. bool? only,
  7. bool? sanitizeExit,
  8. Object? permissions,
})

Implementation

factory BenchDefinition({
  _i7.FutureOr<void> Function(_i4.BenchContext)? fn,
  _i2.String? name,
  _i2.bool? ignore,
  _i2.String? group,
  _i2.bool? baseline,
  _i2.bool? only,
  _i2.bool? sanitizeExit,
  _i2.Object? permissions,
}) =>
    BenchDefinition._(
      fn: fn == null
          ? null
          : _i3.allowInterop((p0) => _i6.Promise.futureOr(() => fn(p0))),
      name: name,
      ignore: ignore,
      group: group,
      baseline: baseline,
      only: only,
      sanitizeExit: sanitizeExit,
      permissions: permissions ?? _i6.undefined,
    );