DeferredStartListening<T, R> typedef

DeferredStartListening<T, R> = VoidCallback Function(InheritedContext<R?> element, void setState(R value), T controller, R? value)

Starts listening to controller for the values element provides, each handed to setState, the first before it returns; value is the last one, null before the first. Returns what stops it.

Implementation

typedef DeferredStartListening<T, R> = VoidCallback Function(
  InheritedContext<R?> element,
  void Function(R value) setState,
  T controller,
  R? value,
);