debugReset static method

  1. @visibleForTesting
void debugReset([
  1. Future<void> apply(
    1. bool on
    )?
])

Troca o wakelock por apply e zera a conta (só nos testes).

Implementation

@visibleForTesting
static void debugReset([Future<void> Function(bool on)? apply]) {
  _holds = 0;
  _apply = apply ?? _wakelock;
}