clean method Null safety

Future clean()

Implementation

Future clean() async {
  if (context.buildDirectory.existsSync()) {
    context.buildDirectory.deleteSync(recursive: true);
  }
}