SignalsObserver
You can observe all signal values in the dart application by providing an implementation of SignalsObserver
:
There is a prebuilt
LoggingSignalsObserver
for printing updates to the console.
To add the observer override the instance at the start of the application:
This will have a slight performance hit since every update will be tracked via the observer. It is recommended to only set the SignalsObserver.instance
in debug or profile mode.