onServerStarted method

void onServerStarted(
  1. HttpServer server
)

Implementation

void onServerStarted(HttpServer server) {
  var prefix = '';
  if (this.prefix case final p?) {
    prefix = '/$p';
  }

  print(
    'Serving at http://${server.address.host}:${server.port}$prefix',
  );
}