Dart source code: new and type inference
n8crwlr opened this issue · 1 comments
n8crwlr commented
Hello,
thank you really much for this, i would really like to enjoy your ride 💯
There are some inconsitences using new
or variable declaration (type inferences).
I would like to request to omit new
overall and to omit type assignment where ever useful to shorten the code:
class _ConversationPageState extends State<ConversationPage> {
// final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();
final _scaffoldKey = GlobalKey<ScaffoldState>();
@override
Widget build(BuildContext context) {
Good time to you
adityadroid commented