nsd library Null safety

Classes

Discovery
Represents a discovery. [...]
Registration
Represents a registration.
Service
Represents a network service.

Functions

enableLogging(LogTopic logTopic) → void
Enables logging for the specified topic. [...]
register(Service service) Future<Registration>
Registers a service. [...]
resolve(Service service) Future<Service>
Resolves a service. [...]
startDiscovery(String serviceType, {bool autoResolve = true}) Future<Discovery>
Starts a discovery for the specified service type. [...]
stopDiscovery(Discovery discovery) Future<void>
Stops the specified discovery. [...]
unregister(Registration registration) Future<void>
Unregisters a service. [...]

Enums

ErrorCause
Indicates the cause of an NsdError.
LogTopic
Represents available log topics.

Exceptions / Errors

NsdError
Represents an error that occurred during an NSD operation. [...]