clean static method

Future<void> clean({
  1. int concurrent = defaultConcurrent,
  2. bool removeLock = false,
})

Implementation

static Future<void> clean(
        {int concurrent = defaultConcurrent, bool removeLock = false}) =>
    execute(
      ['${FlutterHelper.getCommandFlutter()} clean'],
      customCommand: (workingDirectory) {
        if (!removeLock) return;
        final path = join(workingDirectory, 'pubspec.lock');
        if (exists(path)) {
          delete(path);
        }
      },
      concurrent: concurrent,
    );