sizeOfFile method

  1. @override
int sizeOfFile(
  1. String path
)
override

Returns the size of a file at path if it exists.

Otherwise throws a FileSystemException.

Implementation

@override
int sizeOfFile(String path) {
  final type = _recognizeType(path);
  if (type == null) {
    return _memory.sizeOfFile(path);
  } else {
    return _files[type]!.getSize();
  }
}