FastAppPage<T extends FastViewModel> method
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);
},
),
);
}