ProConnectedComponent class

this class manages a number of data streams for ProPresenter clients.

Available Streams: connectionStatus updates

It also emits the following events by default:

connected, connecting, disconnected, failed, update

Child classes may emit custom events with the notify function.

Implementers

Constructors

ProConnectedComponent()

Properties

callbacks Map<String, List<void Function(Event<Object> event)>>
getter/setter pairinherited
connected bool
no setter
connecting bool
no setter
connectionStatus Stream<ProConnectionStatus>
no setter
destroyed bool
getter/setter pair
disconnected bool
no setter
eventStream StreamController<Event<Object>>
getter/setter pairinherited
failed bool
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ProConnectionStatus
getter/setter pair
updates Stream<String>
no setter

Methods

delayedConnectionCheck() Future<ProConnectionStatus>
returns a future that completes after two seconds with the connection status
emit(String event, [Object? data]) → void
emit will always emit twice... first, by the name of the event submitted, and secondly, by the name of the special event 'all'
inherited
listen(String event) Stream<Event<Object>>
listen to an event on this EventEmitter as a stream. A True value will be emitted whenever the event by this name is emitted.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify([String eventName = 'update']) → void
on(String event, void callback(Event<Object> event)) → EventObserver
set a callback for events of this type.
inherited
toString() String
A string representation of this object.
inherited

Operators

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