size property

int get size

Gets the file size in bytes.

Implementation

int get size {
  if (_memoryData != null) return _memoryData.length;
  if (_tempFilePath != null) return File(_tempFilePath).lengthSync();
  return 0;
}