buildProvider method

Widget buildProvider(
  1. T viewModel,
  2. Widget child
)

构建 Provider

Implementation

Widget buildProvider(T viewModel, Widget child) {
  return ViewModelProvider<T>(viewModel: viewModel, child: child);
}