stop method

Future stop()

Implementation

Future stop() async {
  await _server?.close();
  print('Clean content root on Stop');
  Directory appDir = await getApplicationDocumentsDirectory();
  Directory httpContentDirectory = Directory('${appDir.path}/www/content/');
  if (await httpContentDirectory.exists())
    await httpContentDirectory.delete(recursive: true);
  active = false;
}