viewModel method

T viewModel(
  1. WidgetRef ref
)

A utility method to get the instance of the existing viewModel provided at viewModelProvider

Implementation

T viewModel(WidgetRef ref) => ref.watch(viewModelProvider());