You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
632 B

import 'package:hive/hive.dart';
@HiveType(typeId: 7) // 确保与适配器的typeId一致
class StdField {
@HiveField(0)
final String name;
@HiveField(1)
final String chineseName;
@HiveField(2)
final String dateType;
StdField({required this.name, required this.chineseName, required this.dateType});
}
abstract class SelectableItem {
bool isSelected = false;
}
class Field implements SelectableItem {
Field(this.id, this.name, this.chineseName, this.type, [this.isSelected = false]);
final String id;
final String name;
final String chineseName;
final String type;
@override
bool isSelected;
}