transform method
Returns a widget that provides the result of transform applied to the value of this key to its descendants.
Implementation
@widgetFactory
Widget transform({
required T Function(T value) transform,
required Widget child,
}) {
return _EnvironmentValueTransformer(
environmentKey: this,
transform: transform,
child: child,
);
}