您可以通过设置selectedItem属性来指定spinner控件的默认选中项。例如:
Spinner<String>( itEMS: [ 'Option 1', 'Option 2', 'Option 3', ], selectedItem: 'Option 2', onChanged: (value) { // Do something with the selected value },)在上面的例子中,selectedItem被设置为'Option 2',因此spinner控件将默认选中'Option 2'这一项。


