The dart:io library provides access to files and directories through the File and Directory classes . The following example prints its own source code. To determine the location of the source code being executed, we use the Platform class.
Read moreDoes dart io work on Web?
Cross-platform ‘dart:io’ that works in all platforms (browsers, Flutter, and VM) .
Read more