getParentViewModel<T> function
Null safety
- BuildContext context
EXPERIMENTAL: Returns the ViewModel provided above this widget in the tree
Implementation
T getParentViewModel<T>(BuildContext context) => Provider.of<T>(context);