registerCommand method

void registerCommand(
  1. String noteName,
  2. Function commandFactory

Register an INotification to ICommand mapping with the Controller.

  • Param noteName - the name of the INotification to associate the ICommand with.
  • Param commandFactory - a function that creates a new instance of the ICommand.


void registerCommand(String noteName, Function commandFactory) {
  controller.registerCommand(noteName, commandFactory);