BonsoirDiscovery class

Allows to run a network discovery.

Constructors

BonsoirDiscovery({bool printLogs = kDebugMode, required String type})
Creates a new Bonsoir discovery instance.

Properties

eventStream Stream<BonsoirDiscoveryEvent>?
Regular event stream.
no setter
hashCode int
The hash code for this object.
no setterinherited
isReady bool
This returns whether the platform is ready for discovery.
no setter
isStopped bool
Returns whether the discovery has been stopped.
no setter
ready Future<void>
The ready getter, that returns when the platform is ready for discovery.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of service to find.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Starts the discovery.
stop() Future<void>
Stops the discovery.
toJson() Map<String, dynamic>
This returns a JSON representation of this discovery.
toString() String
A string representation of this object.
inherited

Operators

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