when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult start(),
- required TResult allSuites(),
- required TResult suite(),
- required TResult debug(),
- required TResult group(),
- required TResult testStart(),
- required TResult print(),
- required TResult error(),
- required TResult testDone(
- int time,
- TestResult result,
- int testId,
- bool skipped,
- required TResult done(),
- required TResult unknown(
- int time
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
int time, String protocolVersion, String? runnerVersion, int pid)
start,
required TResult Function(int time, int count) allSuites,
required TResult Function(int time, Suite suite) suite,
required TResult Function(int time, @JsonKey(name: 'suiteID') int suiteId,
String? observatory, String? remoteDebugger)
debug,
required TResult Function(int time, Group group) group,
required TResult Function(int time, Test test) testStart,
required TResult Function(int time, @JsonKey(name: 'testID') int testId,
String messageType, String message)
print,
required TResult Function(
int time,
@JsonKey(name: 'testID') int testId,
String error,
@JsonKey(name: 'stackTrace') String stacktrace,
bool isFailure)
error,
required TResult Function(
int time,
@JsonKey(unknownEnumValue: TestResult.unknown) TestResult result,
@JsonKey(name: 'testID') int testId,
bool hidden,
bool skipped)
testDone,
required TResult Function(int time, bool? success) done,
required TResult Function(int time) unknown,
}) =>
throw _privateConstructorUsedError;