FileFetcher.basePath constructor

FileFetcher.basePath(
  1. String path, {
  2. Encoding encoding = utf8,
  3. String? contentType,
})

Create a file fetcher with base path, normally refering to a directory.

Optionally charset encoding or contentType can be set to specify those attributes of files accessed by this client.

Implementation

factory FileFetcher.basePath(
  String path, {
  Encoding encoding = utf8,
  String? contentType,
}) =>
    FileFetcher._(path, encoding, contentType);