Static.directory constructor

Static.directory({
  1. required String directory,
  2. Iterable<String> defaultFiles = const <String>[],
  3. String? prefix,
})

Create a new static from a directory.

Implementation

factory Static.directory({
  required String directory,
  Iterable<String> defaultFiles = const <String>[],
  String? prefix,
}) =>
    Static(
      directories: [directory],
      defaultFiles: defaultFiles,
      prefix: prefix,
    );