在Flutter 中使用枚举(enum)时,可以使用switch 语句来进行分类讨论。 例如,如果你有一个枚举类型 Season ,定义如下: enum Season { spring, summer, autumn, ...
確定! 回上一頁