resolveRole method
Resolves role to its current model and stream function, or null
when the role (and the inherited default) is unconfigured.
Implementation
({Model model, StreamFunction stream})? resolveRole(String role) {
if (config.chainFor(role, cwd: cwd, homeDir: homeDir) == null) {
return null;
}
final wrapper = streamForRole(role);
return (model: wrapper.currentModel, stream: wrapper.call);
}