configureForTesting method

void configureForTesting({
  1. bool useRealTimers = false,
})

Configure timer behavior for testing

Set useRealTimers to false in tests to prevent pending timer errors. This is automatically called by ZenTestMode.

Implementation

void configureForTesting({bool useRealTimers = false}) {
  _useRealTimers = useRealTimers;
}