ServeOptions constructor

ServeOptions({
  1. num? port,
  2. String? hostname,
  3. AbortSignal? signal,
  4. bool? reusePort,
  5. Object onError([
    1. Object?
    ])?,
  6. void onListen(
    1. dynamic
    )?,
})

Implementation

factory ServeOptions({
  _i2.num? port,
  _i2.String? hostname,
  _i5.AbortSignal? signal,
  _i2.bool? reusePort,
  _i2.Object Function([_i2.Object?])? onError,
  void Function(_i2.dynamic)? onListen,
}) =>
    ServeOptions._(
      port: port,
      hostname: hostname,
      signal: signal ?? _i6.undefined,
      reusePort: reusePort,
      onError: onError == null ? null : _i3.allowInterop(onError),
      onListen: onListen == null ? null : _i3.allowInterop(onListen),
    );