on Screen
Initializes instance of the screen class provided and invokes given tail lambda on it.
This approach helps to reduce boilerplate code and avoid have a screen instance stored in a properties of you tests classes.
In order to use this function, your Screen class must have an empty primary constructor.
Parameters
function
Tail lambda to be invoked on the created instance of screen.