ResolvedBonsoirService class
Represents a resolved Bonsoir service.
- Inheritance
-
- Object
- BonsoirService
- ResolvedBonsoirService
Constructors
-
ResolvedBonsoirService({required String name, required String type, required int port, Map<
String, String> ? attributes, required String? ip}) -
Creates a new resolved Bonsoir service.
const
-
ResolvedBonsoirService.fromJson(Map<
String, dynamic> json, {String prefix = 'service.'}) - Creates a new resolved Bonsoir service instance from the given JSON map.
Properties
-
attributes
→ Map<
String, String> ? -
The service attributes.
The key must be US-ASCII printable characters, excluding the '=' character.
Values may be UTF-8 strings or null. The total length of key + value must be less than 255 bytes.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- ip → String?
-
The service ip.
final
- name → String
-
The service name. Should represent what you want to advertise.
This name is subject to change based on conflicts with other services advertised on the same network.
finalinherited
- port → int
-
The service port.
Your service should be reachable at the given port using the protocol specified in type.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The service type.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{String prefix = 'service.'}) → Map< String, dynamic> -
Converts this JSON service to a JSON map.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
override