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.

Mixed in types
Implementers

Constructors

ProConnectedComponent()

Properties

callbacks Map<String, List<void Function(ProEvent<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<ProEvent<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

clear() → void
inherited
delayedConnectionCheck() Future<ProConnectionStatus>
returns a future that completes after two seconds with the connection status
dispose() → void
inherited
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify([String eventName = 'update']) → void
on(String event, void callback(ProEvent<Object> event)) ProEventObserver
set a callback for events of this type.
inherited
stream(String event) Stream<ProEvent<Object>>
listen to an event on this ProEventEmitter as a stream. An ProEvent will be emitted whenever the event by this name is emitted.
inherited
toString() String
A string representation of this object.
inherited

Operators

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