withRegistry

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

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