selectOperation method
Implementation
OperationType selectOperation() {
final choiceIndex = Select(
prompt: 'Choose an operation:',
options: OperationType.values.map((type) => type.name).toList(),
).interact();
return OperationType.values[choiceIndex];
}