BaseView<T extends BaseViewModel<Object>> constructor

BaseView<T extends BaseViewModel<Object>>({
  1. required T viewModel,
  2. dynamic arguments,
  3. bool inject = true,
  4. Key? key,
})

Implementation

BaseView({required T viewModel, dynamic arguments, bool inject = true, super.key}) {
  this.viewModel = inject ? Locator.register<T>(viewModel) : viewModel;
  this.viewModel.arguments = arguments;
}