lengthSync_ method

int lengthSync_()

Returns size the File in bytes. Returns 0 if the File does not exist.

Implementation

int lengthSync_() {
  final file = File(clean(path));
  if (file.existsSync_()) {
    return file.lengthSync();
  }
  return 0;
}