centralstation library Null safety

Classes

CentralStation
CentralStationRuntime
ChainCommandContext
Command
Command can be object, but if the actual command extend this Command, the runtime property will be set during execution.
EventHandler
register event handler to runtime
SimpleEventHandler
Simple Event Handler (Type/Handler)

Functions

dispatchEvent(dynamic event) → dynamic
exposed as public event sending point

Typedefs

CommandHandler = Stream Function(dynamic command)
command handler definition, should return a stream
DismissWaitingHandler = void Function(BuildContext context)
ErrorHandler = void Function(BuildContext context, dynamic error)
EventHandlerFunc = void Function(dynamic event)
Event Handler Function
WaitingHandler = Future Function(BuildContext context, String text)
future is completed when the waiting dialog is being closed (cancellation?)