If the sample is copied from the official website, the error will be reported. If the sample is added to the red box, the error will not be reported. But why is the official website not added

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