Files
flutterApp/lib/features/home/presentation/widgets/common/enum.dart

14 lines
309 B
Dart
Raw Normal View History

enum WorkMode {
bow("0"), // 作业模式:bow,值为0
custom("2"); // 作业模式:custom,值为2
// 定义枚举的数值属性
final String value;
// 枚举构造函数(必须是const)
const WorkMode(this.value);
}
2026-02-25 17:22:59 +08:00
enum RobotMode { point, robot }
enum AreaMode { work, obstacle }