Select constructor
Implementation
Select({required this.prompt, required this.options, this.initialIndex = 0})
: assert(options.isNotEmpty, 'Options list cannot be empty'),
assert(
initialIndex >= 0 && initialIndex < options.length,
'Initial index must be within options range',
);