DefaultDartnessServer constructor

DefaultDartnessServer(
  1. int _port, {
  2. InternetAddress? internetAddress,
})

Creates a DefaultDartnessServer that listens on the specified _port and internetAddress.

If internetAddress is null the default InternetAddress will be InternetAddress.anyIPv4.

Implementation

DefaultDartnessServer(
  this._port, {
  final InternetAddress? internetAddress,
}) : _internetAddress = internetAddress ?? InternetAddress.anyIPv4;