Skip to Content
API ReferenceValueListenableBuilder

ValueListenableBuilder

An element that rebuilds its subtree whenever the value of an ValueNotifier changes. Subscribe a notifier and provide a builder delegate that turns the current value into an element tree. The subtree is rebuilt automatically each time the notifier emits a new value.

Constructor

ValueListenableBuilder

Creates a new listenable builder.

ParameterDescription
notifierThe notifier to observe.
builderA delegate that receives the build context and the current value and returns the element subtree.
keyAn optional key for reconciliation identity.

Properties

Builder

A delegate that maps the current notifier value to a child element. Called during every build triggered by a value change.

Notifier

The notifier whose value changes drive rebuilds of this element’s subtree.

Methods

CreateState

Last updated on