I've been learning and using dart/flutter for almost 6 months now and one thing that continues to catch me out is how to define method parameters ({named} vs [optional] etc).
Finally spent the time to write a little reference guide that I can refer back to:

I always see advice about writing being a great way to reinforce learning and in this case it's totally true! Writing that post has made dart method parameters so much clearer in my mind especially since I played around with different scenarios so much when creating the examples and dart pad file.

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.