Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart source code: new and type inference #12

Closed
n8crwlr opened this issue Aug 27, 2019 · 1 comment
Closed

Dart source code: new and type inference #12

n8crwlr opened this issue Aug 27, 2019 · 1 comment

Comments

@n8crwlr
Copy link

n8crwlr commented Aug 27, 2019

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
Copy link
Owner

Thanks for pointing it out @n8crwlr . Fixed with
#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants