getStaticDirectory function Null safety

Future<Directory> getStaticDirectory(
  1. Config config
)

Static folder contains files to be copied into public folder like CSS or JS.

Config: build.static_dir

Implementation

Future<Directory> getStaticDirectory(Config config) async {
  return _getOrThrow(
    fs.directory(config.build.staticDir),
  );
}