ShutdownHook constructor
const
ShutdownHook({
- required String name,
- required ShutdownPhase phase,
- required Future<
void> execute(), - Duration timeout = const Duration(seconds: 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,
});