Static constructor
Static({})
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,
);
}