MVVM<T extends ViewModel> constructor

MVVM<T extends ViewModel>({
  1. Key? key,
  2. required Widget view(),
  3. required T viewModel,
  4. bool disposeVM = true,
})

Implementation

MVVM({
  Key? key,
  required Widget Function() view,
  required T viewModel,
  bool disposeVM = true,
})  : props = MVVMProps(
        view: view,
        viewModel: viewModel,
        disposeVM: disposeVM,
      ),
      super(key: key);