In the demo app, we find an instance of "final String? title;" - > Why do we add this "?" after the type String ?
class MyHomePage extends StatefulWidget {
MyHomePage({Key? key, this.title}) : super(key: key);
**final String? title;**
@override
_MyHomePageState createState() => _MyHomePageState();
}
In the same way, why when using it, we add a "!" ?
return Scaffold(
appBar: AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: **Text(widget.title!),**
),
body: Center(