close method

Future close({
  1. bool force = true,
})
inherited

Close the server and clean up any resources

Call this if you are shutting down the server but continuing to run the app.

Implementation

Future close({bool force = true}) async {
  if (server != null) {
    await server!.close(force: force);
  }
}