put<T extends ViewModel> method

void put<T extends ViewModel>(
  1. T viewModel, {
  2. String key = "",
})

Implementation

void put<T extends ViewModel>(T viewModel, {String key = ""}) {
  final Type type = T;
  _viewModels["$key:$type"] = viewModel;
}