setupReloadScript function Null safety

Future<void> setupReloadScript(
  1. Config config
)

Implementation

Future<void> setupReloadScript(Config config) async {
  final publicDir = await getPublicDirectory(config);

  await publicDir
      .childFile('reload.js')
      .writeAsString(_getReloadScript(config));
}