how to get dart file path currently running flutter code example
Example 1: flutter sdk path
where flutter
Example 2: install flutter
$ sudo snap install flutter --classic
where flutter
$ sudo snap install flutter --classic