StartListening<T> typedef

StartListening<T> = VoidCallback Function(InheritedContext<T?> element, T value)

Starts listening to value, which element provides, for the changes to tell the dependents of (InheritedContext.markNeedsNotifyDependents); returns what stops it.

Implementation

typedef StartListening<T> = VoidCallback Function(
  InheritedContext<T?> element,
  T value,
);