Seed class

A class representing seed information for network communication.

The Seed class encapsulates essential details such as IP address, port number, ping response time, online status, and an address identifier. It includes methods for tokenizing raw seed information, converting the instance into a raw string, and parsing seed information from a response string.

Example:

Seed seed = Seed(ip: "192.168.0.1", port: 8080, ping: 20, online: true, address: "example");
print(seed.ip);        // Output: "192.168.0.1"
print(seed.port);      // Output: 8080
print(seed.address);   // Output: "noso address"

Constructors

Seed({String ip = "127.0.0.1", int port = 8080, String address = "", int ping = 0, bool online = false})

Properties

address String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ip String
getter/setter pair
online bool
getter/setter pair
ping int
getter/setter pair
port int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toTokenizer String
Converts the essential details of the Seed instance into a raw string.
no setter

Methods

copyWith({String? ip, int? port, String? address}) Seed
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tokenizer(String verSeed, {String? rawString}) Seed
Tokenizes the provided raw seed information, extracting relevant details.
toString() String
A string representation of this object.
inherited

Operators

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