StartListening<T> typedef
StartListening<T> =
VoidCallback Function(InheritedContext<T?> element, 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:
- InheritedProvider
- DeferredStartListening, a variant of this typedef for more advanced listening.
Implementation
typedef StartListening<T> = VoidCallback Function(
InheritedContext<T?> element,
T value,
);