BonsoirBroadcast class
Allows to broadcast a service on the network.
Constructors
- BonsoirBroadcast({bool printLogs = kDebugMode, required BonsoirService service})
- Creates a new Bonsoir broadcast instance.
Properties
-
eventStream
→ Stream<
BonsoirBroadcastEvent> ? -
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 broadcast.
no setter
- isStopped → bool
-
Returns whether the broadcast has been stopped.
no setter
-
ready
→ Future<
void> -
The ready getter, that returns when the platform is ready for broadcast.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- service → BonsoirService
-
The service to broadcast.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → Future< void> - Starts the broadcast.
-
stop(
) → Future< void> - Stops the broadcast.
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited