getFile method

  1. @override
Future<File> getFile(
  1. String path
)
override

Retrieves a File object for the given path.

Implementation

@override
Future<File> getFile(String path) async {
  final filePath = resolvePath(path);
  if (filePath == rootDirectory) {
    throw FileSystemException("Cannot get root as a file", path);
  }
  return File(filePath);
}