update method
Returns a widget that provides the given value
for this key to its
descendants.
Implementation
@widgetFactory
Widget update({required T value, required Widget child}) {
return _EnvironmentValue<T, K>(
value: value,
child: child,
);
}