We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, please, explain, what does ._internal() mean in Singleton Pattern?
class Me { static final Me _singleton = new Me._internal(); static final String _name = "Tyler"; factory Me() { return _singleton; } static String get name => _name; @override String toString() => "Hello, my name is $name."; Me._internal(); }
Me._internal()
The text was updated successfully, but these errors were encountered:
Hii @tagirahmad _internal() is a named constructor. Just search about named constructors in dart you will get the answer.
_internal()
Sorry, something went wrong.
@Foriyo Thanks for answering!
@tagirahmad Sorry I completely missed this notification. Please don't ever hesitate to ping my handle directly if you have any future questions.
No branches or pull requests
Hello, please, explain, what does ._internal() mean in Singleton Pattern?
The text was updated successfully, but these errors were encountered: