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