use<T> function

T use<T>(
  1. BuildContext context,
  2. CreateCallback<T> create, {
  3. required String id,
  4. ListenerCallback<T>? listener,
  5. DisposeCallback<T>? dispose,
})

Hook T

Implementation

T use<T>(
  BuildContext context,
  CreateCallback<T> create, {
  required String id,
  ListenerCallback<T>? listener,
  DisposeCallback<T>? dispose,
}) =>
    _use<T>(context, id, create, listener: listener, dispose: dispose);