Upsert Screen

constructor(itemId: String? = null, insertTitle: StringResource, updateTitle: StringResource, insertButtonText: StringResource = Res.string.insert, viewModel: V)

Parameters

itemId

The identifier of the item to update

insertTitle

The title of the screen when the action is an insert action

updateTitle

The title of the screen when the action is an update action

insertButtonText

The text of the button used to upsert the item

viewModel

The support viewmodel for the screen

I

The type of the item displayed

V

The type of the viewmodel of the screen