Is there a way to have an argument with two types in Dart?

Posted by Jennifer | Updated on

Is there a way to have an argument with two types in Dart? Since you are expecting one of multiple types, what about having dynamic and then in the push method of NavTo, you could check the type:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers