MethodChannelBonsoirAction<T extends BonsoirEvent> class abstract

Abstract class that contains all methods that are communicating with the native side of the plugin.

Inheritance
Implementers

Constructors

MethodChannelBonsoirAction({required String classType, bool printLogs = kDebugMode})
Creates a new Bonsoir class instance.

Properties

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

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.
override
stop() Future<void>
Stops the current discover or broadcast.
override
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) → T
Transforms the stream data to a T.

Operators

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

Constants

channel → const MethodChannel
The channel.