stopServer method Null safety

void stopServer()

Stop the server

Implementation

void stopServer() {
  server.close();
}