EnvironmentValueModifiers<T, K extends EnvironmentKey<T, K>> extension

Methods on EnvironmentKey for modifying the value of the key.

on

Methods

transform({required T transform(T value), required Widget child}) Widget
Returns a widget that provides the result of transform applied to the value of this key to its descendants.
update({required T value, required Widget child}) Widget
Returns a widget that provides the given value for this key to its descendants.