How to access other classes method in Dart?

Posted by Andre Scott | Updated on

Want to access other classes method in Dart? First, note that any method that starts with an underscore will be considered private in the Dart. look here .

In this case, you should pass the method to the child widget and call it later. check this example:

And in the flutterMap.dart:


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