length property

int length

Return the file length; if this FilePath is not a File, return 0.

Implementation

int get length => isFile ? asFile.lengthSync() : 0;