ConsoleMonitor constructor

ConsoleMonitor(
  1. StateMachine stateMachine, {
  2. void printer(
    1. String
    ) = _simplePrint,
})

Test

The stateMachine is the state machine to be monitored. printer Defines a function we want monitor to use to output active states. If not given the default implementation will use print().

Implementation

ConsoleMonitor(
  this.stateMachine, {
  this.printer = _simplePrint,
});