Widget name with lowercase letter

This is not the very first time using Flutter and I used to write the widget name starting with an uppercase letter.

Why the “buildRecipeCard” widget is written in lowercase (chapter 2)? Some convention to consider ?
Thanks.

buildRecipeCard is a function, and functions by convention, the first letter is lowercase.

Classes by convention, first letter is uppercase.

Thanks @jomoka.

I didn’t realize immediately it is a function that returns a widget.

1 Like