add method

void add(
  1. TSyncOrAsyncMapper<dynamic, T> callback
)

Adds a single callback to the controller.

Implementation

void add(TSyncOrAsyncMapper<dynamic, T> callback) {
  _callbacks.add(callback);
}