MainPage constructor Null safety

const MainPage(
  1. {Key? key}
)

Implementation

const MainPage({Key? key}) : super(key: key);