get<T extends ViewModel> method

T? get<T extends ViewModel>({
  1. String key = "",
})

Implementation

T? get<T extends ViewModel>({String key = ""}) {
  final Type type = T;
  return _viewModels["$key:$type"] as T?;
}