fileLength function

Future<int> fileLength(
  1. String pathToFile
)

Returns the length of the file at pathToFile in bytes.

Implementation

Future<int> fileLength(String pathToFile) => File(pathToFile).length();