ListenableProvider<T extends Listenable?> constructor

ListenableProvider<T extends Listenable?>({
  1. required Create<T> create,
  2. Key? key,
  3. Dispose<T>? dispose,
  4. bool? lazy,
  5. TransitionBuilder? builder,
  6. Widget? child,
})

Provides the listenable create makes, handed to dispose, if given, when this widget leaves the tree.

Implementation

ListenableProvider({
  required Create<T> super.create,
  super.key,
  super.dispose,
  super.lazy,
  super.builder,
  super.child,
}) : super(startListening: _startListening);