install method

Future<ToolInstall> install(
  1. SmfEnvironment environment
)

Installs what check found missing and returns where it is.

The pipeline calls it only after check reported PreflightMissing.installable and the user agreed. The default throws an UnsupportedError.

Implementation

Future<ToolInstall> install(SmfEnvironment environment) async {
  throw UnsupportedError('The preflight check $id cannot install anything.');
}