reset method

Future<void> reset()

Requests the application to perform a reset.

Implementation

Future<void> reset() async {
  clearTestVariables();

  _resetController.add(null);

  // ignore: deprecated_member_use_from_same_package
  if (onReset != null) {
    // ignore: deprecated_member_use_from_same_package
    await onReset!();
  }
  // This covers the minimum animation time for Material animations to
  // complete.  This may or may not be enough time, which is why apps can add
  // to the time using the [testSetUp] value.
  await Future.delayed(const Duration(seconds: 1));

  status = '<set up>';
  await _sleep(delays.testSetUp);
}