MicroAppEventController class
Constructors
- MicroAppEventController()
-
Factory instance
factory
- MicroAppEventController.$testOnlyPurpose()
-
⚠️ It is used only for unit tests purposes
factory
Properties
-
handlers
→ Map<
MicroAppEventHandler, StreamSubscription< MicroAppEvent> > -
get all handlers and subscriptions availables
no setter
- hasHandlers → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSubscribers → bool
-
no setter
- onEvent → MicroAppEventSubscription
-
Used to listen all micro app events
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
MicroAppEvent> -
Can be used to filter events and listen to app events, anywhere
no setter
-
webviewControllers
→ Map<
String, GenericMicroAppEventController> -
no setter
Methods
-
dispose(
) → void - dispose controller (do not dispose this, if there is not a very specific situation case)
-
emit<
T> (MicroAppEvent< T> event, {Duration? timeout}) → List<Future> - MicroAppEvent the event that is emitted to the micro apps (Managed by event broker)
-
getMicroBoardData(
) → String -
hasHandler(
{String? id, List< String> ? channels}) → bool - hasHandler
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyDevtoolsMicroBoardChanged(
) → dynamic -
pauseAllHandlers(
) → void - pauseAllHandlers
-
registerHandler<
T> (MicroAppEventHandler? handler) → StreamSubscription< MicroAppEvent> ? - register handler
-
registerWebviewController(
{required String id, required GenericMicroAppEventController controller}) → GenericMicroAppEventController - registerWebviewController
-
resumeAllHandlers(
) → void - resumeAllHandlers
-
toString(
) → String -
A string representation of this object.
inherited
-
unregisterAllHandlers(
) → Future< void> - unregisterAllHandlers
-
unregisterHandler(
{String? id, List< String> ? channels, MicroAppEventHandler? handler}) → Future<MicroAppEventHandler?> - unregisterHandler
-
unregisterWebviewController(
{required String id}) → GenericMicroAppEventController? - unregisterWebviewController
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ MicroAppEventController
-
MicroAppController instance
getter/setter pair