Port class

Port describes the properties of a specific port of a service.

Constructors

Port({String? name, required int number, String? protocol, int? targetPort})
The main constructor.
const
Port.fromJson(Map<String, dynamic> json)
Creates a Port from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
Label assigned to the port.
final
number int
A valid non-negative integer port number.
final
protocol String?
The protocol exposed on the port.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetPort int?
Target port.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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