toFile method

File toFile()

Converts this path to a File object

Returns a File object for this path

Example:

final file = '/path/to/document.pdf'.toFile();

Implementation

File toFile() => File(this);