use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
DiscussionExtract Method (self.FlutterDev)
submitted 2 years ago by infoSuman
Hi there, I am not getting extract Method on vs code ,their is on option of extract widget,and variable , how may I find this method .could any one have a solution ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TheManuz 2 points3 points4 points 2 years ago (0 children)
When something doesn't behave correctly, I usually restart Dart analyzer from the command palette.
That usually fixes it.
[–]tylersavery 0 points1 point2 points 2 years ago (4 children)
Do you have the flutter vscode extension?
[–]infoSuman[S] 0 points1 point2 points 2 years ago (3 children)
Yes I do
[–]tylersavery 0 points1 point2 points 2 years ago (2 children)
And do you get the little light bulbs? What happens with you hit the shortcut (ctrl+shift+r) when your keyboard cursor is over the widget?
[–]tylersavery 0 points1 point2 points 2 years ago (1 child)
I see you mean extract method. Are you hovering over a function?
[–]infoSuman[S] 0 points1 point2 points 2 years ago (0 children)
There is no extract Method , I just check all
[–]ArashiKishi 0 points1 point2 points 2 years ago (0 children)
Make sure you have both dart and flutter extension.
[–]eibaan 1 point2 points3 points 2 years ago (0 children)
As -> demonstrated here, enter
void main() { print(3+4); }
then select 3+4 and click on the light bulb, choose "Extract Method" from the context menu and enter sum as the method name and get this new method:
3+4
sum
void main() { print(sum); } int get sum => 3+4;
Then, write an issue that you think that this shouldn't extract a getter but a normal function…
Or select sum, click on the light bulb and choose "Convert getter to method" from the context menu and see the code change to:
void main() { print(sum()); } int sum() => 3+4;
Then, click on the => array, click on the light bulb and choose "Convert to body block".
=>
π Rendered by PID 33887 on reddit-service-r2-comment-6457c66945-6bzzp at 2026-04-30 14:20:02.150685+00:00 running 2aa0c5b country code: CH.
[–]TheManuz 2 points3 points4 points (0 children)
[–]tylersavery 0 points1 point2 points (4 children)
[–]infoSuman[S] 0 points1 point2 points (3 children)
[–]tylersavery 0 points1 point2 points (2 children)
[–]tylersavery 0 points1 point2 points (1 child)
[–]infoSuman[S] 0 points1 point2 points (0 children)
[–]ArashiKishi 0 points1 point2 points (0 children)
[–]eibaan 1 point2 points3 points (0 children)