Empire<T extends EmpireViewModel> constructor Null safety

const Empire<T extends EmpireViewModel>(
  1. T viewModel,
  2. {Key? key,
  3. required Widget child,
  4. required String onAppStateChanged(
      ),
    1. bool debugPrintStateChanges = false}
    )

    Implementation

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