selectStateManagement function

String selectStateManagement()

Prompts user to select state management interactively.

Returns one of: 'Riverpod', 'Bloc', 'GetX', 'Provider'

Implementation

String selectStateManagement() {
  final options = [
    'Riverpod',
    'Bloc',
    'GetX',
    'Provider',
  ];

  final selected = Select(
    prompt: 'Select State Management',
    options: options,
  ).interact();

  return options[selected];
}