PluginsRefreshCommand constructor

PluginsRefreshCommand({
  1. VirtualFs? fs,
  2. String? projectRoot,
  3. bool directoryExists(
    1. String absDir
    )?,
})

Creates a PluginsRefreshCommand.

@param fs File-system abstraction (defaults to RealFs). @param projectRoot Override for project root resolution; defaults to FileHelper.findProjectRoot which walks up from the current working directory looking for pubspec.yaml. @param directoryExists Predicate used to verify lib/app/ exists. Defaults to Directory(absDir).existsSync(). Tests inject an in-memory probe so unit tests never touch disk.

Implementation

PluginsRefreshCommand({
  VirtualFs? fs,
  String? projectRoot,
  bool Function(String absDir)? directoryExists,
})  : _fs = fs ?? const RealFs(),
      _projectRootOverride = projectRoot,
      _directoryExists = directoryExists ?? _defaultDirectoryExists;