updateModel method

void updateModel(
  1. String name,
  2. String modelId
)

Records the last-used model for the entry named name (no-op when absent).

Implementation

void updateModel(String name, String modelId) {
  find(name)?.modelId = modelId;
}