expectBuildClean function

void expectBuildClean({
  1. String? packageRelativeDirectory,
  2. List<String> customCommand = defaultCommand,
})

If customCommand is not specified, defaultCommand is used.

The first item in customCommand is used as the executable to run. The remaining values are used as the executable arguments.

If the first value is PUB or DART (case-sensitive), it will be replaced with the full, platform-specific path to the corresponding executable in the currently executing SDK.

Implementation

void expectBuildClean({
  String? packageRelativeDirectory,
  List<String> customCommand = defaultCommand,
}) =>
    expectBuildCleanImpl(
      Directory.current.resolveSymbolicLinksSync(),
      customCommand,
      packageRelativeDirectory: packageRelativeDirectory,
    );