getParentViewModel<T> function

T getParentViewModel<T>(
  1. BuildContext context
)

EXPERIMENTAL: Returns the ViewModel provided above this widget in the tree

Implementation

T getParentViewModel<T>(BuildContext context) => Provider.of<T>(context);