You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I am new to dart. Can you help me how to pass the class as a function parameter?
For example, the code in Javascript can be written like this:
class MyCls{
hello(){}
}
function myFun(cls){
return new cls();
}
myFun(MyCls);
but how do I pass a class as a function parameter in dart?
The text was updated successfully, but these errors were encountered:
Hi guys, I am new to dart. Can you help me how to pass the class as a function parameter?
For example, the code in Javascript can be written like this:
but how do I pass a class as a function parameter in dart?
The text was updated successfully, but these errors were encountered: