14 lines
302 B
Dart
14 lines
302 B
Dart
enum WorkMode {
|
||
bow(0), // 作业模式:bow,值为0
|
||
custom(2); // 作业模式:custom,值为2
|
||
|
||
// 定义枚举的数值属性
|
||
final int value;
|
||
// 枚举构造函数(必须是const)
|
||
const WorkMode(this.value);
|
||
}
|
||
|
||
enum RobotMode { point, robot }
|
||
|
||
enum AreaMode { work, obstacle }
|