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:
https://monkeymatt.racing/understanding-method-parameters-in-dart/
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.