addListener method

  1. @override
void addListener(
  1. void listener()
)
inherited

Adds a listener handler.

Implementation

@override
void addListener(void Function() listener) {
  _pending[listener] = _add;
  if (!_isProcessed) {
    _applyChanges();
  }
}