Community question ยท 3 years ago

Question #348330

Flutter - ordering Widget class members

In the following section of the Flutter style guide it suggests to put the widget's build method after all other methods, even the private ones that the build method uses. In theory it collides with a general rule of putting private class members after public class members. While developing real Flutter apps I've also noticed that if I want to fully understand a widget's private method, I usually need to start from going to a place where it's called.

What's a reason for putting build method after private methods that it uses?

Community responses

0 answers

Add your answer

Share the reasoning, tradeoffs, and code that make your answer useful.