onAddListener abstract method

void onAddListener(
  1. void cb()
)

A life-cycle for whenever a new listener is added to the provider.

See also:

Implementation

void onAddListener(void Function() cb);