Protocol class Null safety

See getSupportedProtocols.

Constructors

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
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-only, inherited

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?