StartListening<T> typedef

VoidCallback StartListening (
  1. InheritedContext<T> element,
  2. T value
)

A callback used to start the listening of an object and return a function that cancels the subscription.

It is called the first time the value is obtained (through InheritedContext.value). And the returned callback will be called when InheritedProvider is unmounted or when the it is rebuilt with a new value.

See also:

Implementation

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