Skip to Content

Consumer

Reads the value from the nearest ancestor Provider and passes it to a builder function. Rebuilds whenever that value changes.

Constructor

Consumer

Creates an Consumer.

ParameterDescription
builderA function that receives the current provided value and returns the UI subtree. Must not be null.
keyAn optional key for reconciliation identity.

Properties

Builder

The builder function that receives the current value and the build context and returns an element describing the UI.

Methods

Build

Last updated on