disposeWith method

void disposeWith(
  1. DspReg? dsp,
  2. FutureOr<void> action(
    1. T value
    )
)

Implementation

void disposeWith(
  DspReg? dsp,
  FutureOr<void> Function(T value) action,
) {
  dsp?.add(() => action(this));
}