import 'io_type.dart'; abstract class Reply{ //value字节长度 int? offset_19 = 19; //基准源长度 int? offset_8 = 8; //草坪名称 int? offset_6 = 6; //基准源识别码6个字节 int? offset_4 = 4; int? offset_2 = 2; int? offset_1 = 1; CommandType? commandType; int? result = 1; //1是正常 0 是异常 //command key flag int commandKey = 0; Reply.parseData(this.commandType,List dataDetail,int endIndex); Reply({this.result}); bool get isSuccessfully => result == 1; }