Protocol class Null safety

See getSupportedProtocols.

Constructors

Protocol({String? protocolName, int? major, int? minor})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
major int?
The major revision of the protocol.
read / write
minor int?
The minor revision of the protocol.
read / write
protocolName String?
The name of the supported protocol.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(Map<String, dynamic>? json) Protocol?