app / de.uniks.codliners.stock_simulator.ui.stockbrot / StockbrotViewModel / Factory / create

create

fun <T : ViewModel?> create(modelClass: Class<T>): T

Attempts to create a StockbrotViewModel.

Parameters

T - The requested type of ViewModel.

modelClass - The requested class. StockbrotViewModel must be assignable to it.

Exceptions

IllegalArgumentException - if StockbrotViewModel is not assignable to modelClass.

Return
The created StockbrotViewModel.