FanetJoinLink class final

A parsed fa_network join link.

Constructors

FanetJoinLink({required Object restBase, required String networkId, String? password})
Creates a join link value. restBase may be a Uri or its string form; it must be the server origin (scheme + host + optional port), without a path.
FanetJoinLink.parse(String link)
Parses a join link such as https://network.fa1.dev/join?network=net-1#pw=s3cret.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
networkId → String
The network to join.
final
password → String?
The network password carried in the link fragment, if any.
final
restBase → Uri
The REST origin of the fa_network server (scheme + host + optional port, no path) — the base URL for FanetClient.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
toUri() → Uri
Builds the join link back, percent-encoding the network id and the password as needed. The inverse of FanetJoinLink.parse.

Operators

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