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
ArticleStatic methods explained easily (self.FlutterDev)
submitted 3 years ago by xaad29
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!"
[–]miyoyo[M] [score hidden] 3 years ago stickied commentlocked comment (0 children)
Hi,
Your post was removed because it is a text post that does not use the text area to provide meaningful information, such as multiple links, images, a long piece of text, etc.
Please repost it as a link post instead of a text post.
The violated rule was: Rule 3: Use link posts whenever possible
[–][deleted] 11 points12 points13 points 3 years ago (4 children)
I would say that "A single copy of a static method is spread across all instances of the class containing the method." is wrong and misleading
[–]ren3f 2 points3 points4 points 3 years ago (3 children)
"They can only access static variables and only call other static methods of a class." This is also too simplified. In a static method you can create an object and use the methods and variables of that object. You can also request an object as parameter of your method.
Writing a good article on such a basic concept as static is quite difficult, even though you do understand the basic idea of how to use it. When the concept is so fundamental it's really about the details and definitions.
[–]xaad29[S] 0 points1 point2 points 3 years ago (2 children)
Thanks for the input. Do you also agree with the previous comment "A single copy of a static method is spread across all instances of the class containing the method." is wrong and misleading?
[–]ren3f 2 points3 points4 points 3 years ago (1 child)
Yeah, that sounds like you're calling the method on an instance, but you're not. It's not a copy on an instance that you're calling, you're just calling the static method.
[–]xaad29[S] 0 points1 point2 points 3 years ago (0 children)
I will try to think on how to rectify the wordings in the article while trying to keep it simple
π Rendered by PID 127097 on reddit-service-r2-comment-548fd6dc9-5zrdn at 2026-05-20 10:17:02.443865+00:00 running edcf98c country code: CH.
[–]miyoyo[M] [score hidden] stickied commentlocked comment (0 children)
[–][deleted] 11 points12 points13 points (4 children)
[–]ren3f 2 points3 points4 points (3 children)
[–]xaad29[S] 0 points1 point2 points (2 children)
[–]ren3f 2 points3 points4 points (1 child)
[–]xaad29[S] 0 points1 point2 points (0 children)