VersionInformation constructor

VersionInformation({
  1. required int chosenVersion,
  2. required List<int> availableVersions,
  3. List<int> otherVersions = const [],
})

Creates version information for the transport parameter.

chosenVersion is the negotiated QUIC version. availableVersions lists versions the endpoint supports. otherVersions may contain reserved/greased versions.

Implementation

VersionInformation({
  required this.chosenVersion,
  required this.availableVersions,
  this.otherVersions = const [],
});