ShutdownHook constructor

const ShutdownHook({
  1. required String name,
  2. required ShutdownPhase phase,
  3. required Future<void> execute(),
  4. Duration timeout = const Duration(seconds: 5),
  5. bool critical = false,
})

Implementation

const ShutdownHook({
  required this.name,
  required this.phase,
  required this.execute,
  this.timeout = const Duration(seconds: 5),
  this.critical = false,
});