ContextExtension extension
- on
Methods
-
getViewModel<
T extends ViewModel> ({bool ignoreCache = false, bool ignoreStack = false, bool ignoreInherited = false, bool inheritedListen = false}) → T? -
Available on BuildContext, provided by the ContextExtension extension
获取当前的或共享的 ViewModel。