withEnvironment

Returns an EnvironmentScreen derived from the receiver, whose EnvironmentScreen.environment includes the values in the given environment.

If the receiver is an EnvironmentScreen, uses ViewRegistry.merge to preserve the ViewRegistry entries of both.


Returns an EnvironmentScreen derived from the receiver, whose EnvironmentScreen.environment includes the given entry.