BonsoirService class

Represents a broadcastable network service.

Implementers

Constructors

BonsoirService({required String name, required String type, required int port, Map<String, String>? attributes})
Creates a new Bonsoir service instance.
const
BonsoirService.fromJson(Map<String, dynamic> json, {String prefix = 'service.'})
Creates a new Bonsoir service instance from the given JSON map.
factory

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.
final
hashCode int
The hash code for this object.
no setteroverride
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.
final
port int
The service port. Your service should be reachable at the given port using the protocol specified in type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The service type.
final

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.
toString() String
A string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator.
override