value property

T? value
final

Optional pre-existing resource instance to provide.

When provided, the provider does not manage the resource's lifecycle at all:

  • Does not call onMount
  • Does not call onUnmount
  • Does not dispose the resource
  • Does not call any lifecycle callbacks

Use this when you want to provide an externally managed resource, such as a singleton or a resource managed by another provider. Cannot be used together with create.

Implementation

final T? value;