length property

int get length

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

Implementation

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