onDispose method

void onDispose(
  1. void cb()
)

Registers a callback to run when the provider is disposed.

Implementation

void onDispose(void Function() cb) => _core.onDispose(cb);