MethodChannelBonsoirBroadcastAction class

Implementation of MethodChannelBonsoirEvents for the broadcast action.

Inheritance

Constructors

MethodChannelBonsoirBroadcastAction({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
This returns whether the platform is ready for this action.
no setterinherited
isStopped bool
This returns whether the platform has discarded this action.
no setterinherited
printLogs bool
Whether to print logs.
finalinherited
ready Future<void>
The ready getter, that returns when the platform is ready for the operation requested. 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

invokeMethod<R>(String method, [Map<String, dynamic>? arguments]) Future<R?>
Invokes a method on the method channel.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
This starts the required action (eg. discovery, or broadcast).
inherited
stop() Future<void>
This stops the action (eg. stops discovery or broadcast).
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited
transformPlatformEvent(dynamic event) BonsoirBroadcastEvent
Transforms the stream data to a T.
override

Operators

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