EmpireWidget<T extends EmpireViewModel> constructor Null safety

const EmpireWidget<T extends EmpireViewModel>(
  1. {Key? key,
  2. required T viewModel,
  3. bool debugPrintStateChanges = false}
)

Implementation

const EmpireWidget({
  Key? key,
  required this.viewModel,
  this.debugPrintStateChanges = false,
}) : super(key: key);