Skip to Content

Provider

Makes a value of type available to any descendant in the element tree. Descendants retrieve it with context.GetInherited<Provider<T>>().Value or by using Consumer / Selector.

Constructor

Provider

Creates an Provider that supplies to the subtree rooted at .

ParameterDescription
valueThe value to provide. May be null for reference types.
childThe child subtree that can access this provider. Must not be null.
keyAn optional key for reconciliation identity.

Properties

Value

The value made available to descendants.

Methods

UpdateShouldNotify

Last updated on