builder method Null safety

Widget builder(
  1. BuildContext context,
  2. T viewModel,
  3. Widget? child
)

A function that builds the UI to be shown from the ViewModel - Required

viewModel is the ViewModel passed in and child is the staticChildBuilder result

Implementation

Widget builder(
  BuildContext context,
  T viewModel,
  Widget? child,
);