unregister function
Unregisters a service.
Services must be unregistered to free their resources. Unregistering a service when it closes down also helps prevent other applications from thinking it's still active and attempting to connect to it.
Implementation
Future<void> unregister(Registration registration) async =>
NsdPlatformInterface.instance.unregister(registration);