addListener abstract method

void addListener(
  1. void listener()
)

A method to add a listener to the controller.

Implementation

void addListener(void Function() listener);