Peer class Null safety

This message defines attributes for a node that handles a network request.

The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in principal and labels as appropriate.

Constructors

Peer({String? ip, Map<String, String>? labels, String? port, String? principal, String? regionCode})
Peer.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
ip String?
The IP address of the peer.
read / write
labels Map<String, String>?
The labels associated with the peer.
read / write
port String?
The network port of the peer.
read / write
principal String?
The identity of this peer.
read / write
regionCode String?
The CLDR country/region code associated with the above IP address.
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.
inherited

Operators

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