Hi I'm new to Flutter and I have several questions regarding Extract Method and Extract Widget in Android Studio.
When it comes to making code clean and reusable, what is the difference between
Extract MethodandExtract Widget? When do I know what to use? It seems they both work fine to me.If I
Right clickon a Widget that I want to extract and go toRefactor->Extract Flutter Widgetthen it works, however if ILeft clickon a Widget to focus and use the hotkeyCommand+Option+W, it doesn't work. Why is it happening? Moreover if I go toFlutter outline-> select the Widget ->Right click->Extract Widgetthen it shows the same result. What's the difference betweenExtract Flutter WidgetandExtract Widget?
Thank you.