getToolchain method

Future<RustupToolchain?> getToolchain(
  1. String name
)

Implementation

Future<RustupToolchain?> getToolchain(String name) async {
  return (await installedToolchains()).firstWhereOrNull(
    (e) => e.name == name || e.name.startsWith('$name-'),
  );
}