void add(
T data
)

Adds event to the controller's stream.

As StreamController.add, but must not be called while an event is being added by add, addError or close.

Source

/**
 * Adds event to the controller's stream.
 *
 * As [StreamController.add], but must not be called while an event is
 * being added by [add], [addError] or [close].
 */
void add(T data);