BonsoirBroadcastAction class

Implementation of MethodChannelBonsoirEvents for the broadcast action.

Inheritance

Constructors

BonsoirBroadcastAction({required BonsoirService service, bool printLogs = kDebugMode})
Creates a new method channel action instance for the broadcast action.

Properties

eventStream Stream<BonsoirBroadcastEvent>?
The event stream. Subscribe to it to receive this instance updates.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isReady bool
Returns whether this instance can be used.
no setterinherited
isStopped bool
Returns whether this instance has been stopped.
no setterinherited
printLogs bool
Whether to print logs.
finalinherited
ready Future<void>
Await this method to know when the plugin will be ready.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service BonsoirService
The Bonsoir service.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Starts to do either a discover or a broadcast.
inherited
stop() Future<void>
Stops the current discover or broadcast.
inherited
toJson() Map<String, dynamic>
Converts this Bonsoir class to a JSON map.
override
toString() String
A string representation of this object.
inherited
transformPlatformEvent(dynamic event) BonsoirBroadcastEvent
Transforms a platform event to a broadcast event.
override

Operators

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