withTestTimeout method
Implementation
Future<T> withTestTimeout([Duration timeout = const Duration(seconds: 5)]) {
return this.timeout(
timeout,
onTimeout: () =>
throw TimeoutException('Future timed out after $timeout'),
);
}
Future<T> withTestTimeout([Duration timeout = const Duration(seconds: 5)]) {
return this.timeout(
timeout,
onTimeout: () =>
throw TimeoutException('Future timed out after $timeout'),
);
}