In building my API, I've found it difficult to come up with a consistently nice way to organize the members within my classes. The
Dart Style Guide only touches on constructors, and simply recommends
using things like setters and getters. But is there a recommendation or best practice for how to lay out a class that helps for readability and navigation? For example, should a constructor always be at the top? Would it make more sense to put all static members before or after instance members? Private before public? etc.
I could see this being difficult to standardize and may just depend on subjective preference or the target application of an API, so I'd also be interested in a recommendation for an existing library package (one where the classes are very nicely laid out) to use as a model.