onStop method

  1. @override
Future<void> onStop()
override

Called when the owning ZenithContainer or ZenithRef scope is disposed/reset.

Implementation

@override
Future<void> onStop() async {
  _timer?.cancel();
  _timer = null;
  _ref = null;
  await _inFlight;
}