-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Extension methods are now sometimes shown before regular methods in the list of autocompletes.
Extension methods should be shown after all regular methods because it is easy for popular classes to end up with a lot of rarely used extension methods. Showing all these extension methods before regular members makes it hard to see the true shape of the class versus the shape of all the extensions. Using different icons for extension methods in the autocomplete list would also help clarify what completions are extensions and what are normal.
Example autocompletes for a BuildContext
(commonly used Flutter framework base class). Notice that watch()
is just an extension method from package:provider
that is in scope because my file uses package:provider
Fyi @Hixie for thoughts on reducing the risk of extension methods cluttering Flutter apis.