shutdown static method

Future<void> shutdown()

Stops the persistent Node.js server.

Call this when you're done using PugServer to clean up resources. The server will be automatically restarted if needed on the next render call.

Example:

// When your app is shutting down
await PugServer.shutdown();

Implementation

static Future<void> shutdown() async {
  await _stopServer();
}