onCleanup method

  1. @override
void onCleanup(
  1. Disposer fn
)
override

Registers a cleanup callback for this effect.

The fn callback runs before this effect re-runs and when this effect disposes.

Implementation

@override
void onCleanup(Disposer fn) => raw.onCleanup(fn);