ApplicationServer constructor Null safety

ApplicationServer(
  1. Type channelType,
  2. ApplicationOptions? options,
  3. int identifier
)

Creates a new server.

You should not need to invoke this method directly.

Implementation

ApplicationServer(this.channelType, this.options, this.identifier) {
  channel = (RuntimeContext.current[channelType] as ChannelRuntime)
      .instantiateChannel()
        ..server = this
        ..options = options!;
}