stop method

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

Implementation

@override
Future<void> stop() async {
  logger.info("Stopping darwin application...");
  var stopwatch = Stopwatch();
  await stopServices();
  logger.info(
      "Stopped darwin application in ${stopwatch.elapsedMilliseconds}ms. Goodbye!");

  await eventbus.getAsyncLine<KillEvent>().dispatch(KillEvent(this));
}