addListener method

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

Adds a listener and calls the listener upon registration.

Implementation

@override
void addListener(VoidCallback listener) {
  super.addListener(listener);
  listener();
}