registerUserTaskFactory method

void registerUserTaskFactory(
  1. UserTaskFactory factory
)

Register a UserTaskFactory which can create UserTasks for the specified AppTask types.

Implementation

void registerUserTaskFactory(UserTaskFactory factory) {
  for (var type in factory.types) {
    _userTaskFactories[type] = factory;
  }
}