Static constructor

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

Create a new static

Implementation

factory Static({
  required Iterable<String> directories,
  String? prefix,
  Iterable<String> defaultFiles = const <String>[],
}) {
  // Create prefix path
  final String path = "${prefix ?? ''}/:$__spryStaticPrefix*";

  // Create path matcher
  final PathMatcher matcher = PathMatcher.fromPrexp(Prexp.fromString(path));

  return Static.raw(
    directories: directories,
    matcher: matcher,
    defaultFiles: defaultFiles,
  );
}