clearTimeline method

  1. @override
Future<void> clearTimeline({
  1. Duration timeout = kUnusuallyLongTimeout,
})
override

Clears all timeline events recorded up until now.

The timeout argument causes a warning to be displayed to the user if the operation exceeds the specified timeout; it does not actually cancel the operation.

For WebFlutterDriver, this is only supported for Chrome.

Implementation

@override
Future<void> clearTimeline({Duration timeout = kUnusuallyLongTimeout}) async {
  _checkBrowserSupportsTimeline();

  // Reset start time
  _startTime = DateTime.now();
}