Skip to content
New issue

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

Create an instance of an Generic Class from a String in Dart? #21009

Closed
DartBot opened this issue Sep 19, 2014 · 4 comments
Closed

Create an instance of an Generic Class from a String in Dart? #21009

DartBot opened this issue Sep 19, 2014 · 4 comments
Labels
closed-duplicate Closed in favor of an existing report

Comments

@DartBot
Copy link

DartBot commented Sep 19, 2014

This issue was originally filed by @luisvt


It should be a way to create generic classes from strings, for example:

    var class_name = "GenericController<Book>"; // user input here
    var bookController = genericControllerCm.newInstance(const Symbol(""), [], type: Book);

@DartBot
Copy link
Author

DartBot commented Sep 19, 2014

This comment was originally written by @zoechi


seems to be a dupe of dartbug.com/12921

@DartBot
Copy link
Author

DartBot commented Sep 19, 2014

This comment was originally written by @luisvt


Yes, it is. Sorry for that

@DartBot
Copy link
Author

DartBot commented Sep 19, 2014

This comment was originally written by @zoechi


No problem, happens all the time. I just try to provide some added value by adding links ;-)

@floitschG
Copy link
Contributor

Added Duplicate label.
Marked as being merged into #12921.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

3 participants