addListener method

void addListener(
  1. void listener()
)
inherited

Implementation

void addListener(void Function() listener) {
  listeners.add(listener);
}