FastAppPage<T extends FastViewModel> method

Widget FastAppPage<T extends FastViewModel>({
  1. required T viewModel,
  2. required FastPage body,
})

Implementation

Widget FastAppPage<T extends FastViewModel>(
    {required T viewModel, required FastPage body}) {
  return new ScopedModel<T>(
    model: viewModel,
    child: new ScopedModelDescendant<T>(
      builder: (context, child, viewModel) {
        return body(context, viewModel);
      },
    ),
  );
}