ConnectionEntry class
A representation of connection entry, which type can be either ConnectionEntryType.ip or ConnectionEntryType.url.
Additionally, you can pass a port number which will be used during the socket connection (only on the native platforms). If you don't pass such port number, the default DNS port (53) will be used.
Constructors
- ConnectionEntry(String host, ConnectionEntryType type, {int? port})
- ConnectionEntry.fromIpAddress(String host, {int? port})
-
Create a new ConnectionEntry from an IP address.
factory
- ConnectionEntry.fromUrl(String host, {int? port})
-
Create a new ConnectionEntry from a URL.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
final
- port → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ConnectionEntryType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited