Constant class
整数常量
Constructors
- Constant()
-
Constant.fromJson(Map<
String, dynamic> map) -
factory
- Constant.fromString(String data)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildTarget(
) → dynamic -
使用本实例字段成员的值生成包装的目标类实例
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - 转换为基本数据类型的Map。转换结果可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库
-
toKValues(
) → Map< String, dynamic> - 转换为用字符串key读取字段值的Map
-
toString(
) → String - jsonEncode(this)抛出的异常被吃掉了,所以需要写成jsonEncode(toJson())
-
updateByJson(
Map< String, dynamic> map, {Constant? parser}) → void -
通过基本数据类型的Map来更新字段。来源
map
可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库 -
updateByKValues(
Map< String, dynamic> map) → void - 通过用字符串key读取字段值的Map来更新字段
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
constMap
→ const Map<
String, Map< int, String> > - denyDestroy → const int
- 通用-用户已经主动的永久注销账号
- denyForever → const int
- 通用-用户、群组、数据被永久封禁
- empty → const int
- 通用-空。该值与生成代码的int默认值0对应
- metaTypeForever → const int
- 文件类型-永久文件
- metaTypeMessage → const int
- 文件类型-消息附件
- msgFromTeam → const int
- 消息来源-群组
- msgFromUser → const int
- 消息来源-用户
- msgTypeCustom → const int
- 消息类型-自定义
- msgTypeImage → const int
- 消息类型-图片
- msgTypeRealtimeLocal → const int
- 消息类型-实时位置电话
- 消息类型-实时屏幕共享
- msgTypeRealtimeVideo → const int
- 消息类型-实时视频电话
- msgTypeRealtimeVoice → const int
- 消息类型-实时语音电话
- msgTypeRedpackLuckly → const int
- 消息类型-幸运红包
- msgTypeRedpackNormal → const int
- 消息类型-普通红包
- msgTypeRedpackNotice → const int
- 消息类型-红包通知
- 消息类型-群组名片
- 消息类型-用户名片
- 消息类型-网页分享
- 消息类型-位置分享
- msgTypeSystem → const int
- 消息类型-系统
- msgTypeText → const int
- 消息类型-文本
- msgTypeVideo → const int
- 消息类型-视频
- msgTypeVoice → const int
- 消息类型-语音
- payStateApplied → const int
- 订单状态-已应用
- payStateCanceled → const int
- 订单状态-已取消
- payStateCashError → const int
- 订单状态-提现错误
- payStateFinished → const int
- 订单状态-已完成
- payStateInitial → const int
- 订单状态-初始化
- payStateMaxNotify → const int
- 订单状态-通知超次
- payStateMaxVerify → const int
- 订单状态-验证超次
- payStatePending → const int
- 订单状态-应用中
- payTypeConsumeCashout → const int
- 订单类型-提取现金消耗
- payTypeConsumeRedpackSend → const int
- 订单类型-发出红包消耗
- payTypeConsumeVirtual → const int
- 订单类型-虚拟交易消耗
- payTypeRechargeAlipay → const int
- 订单类型-支付宝充值
- payTypeRechargeApple → const int
- 订单类型-苹果内购充值
- payTypeRechargeWechat → const int
- 订单类型-微信充值
- payTypeRecivedBonuses → const int
- 订单类型-交易分红获得
- payTypeRecivedRedpackReturn → const int
- 订单类型-退回红包获得
- payTypeRecivedRedpackSnatch → const int
- 订单类型-抢到红包获得
- reportStateDeny → const int
- 投诉状态-已拒绝
- reportStatePass → const int
- 投诉状态-已通过
- reportStateWait → const int
- 投诉状态-待处理
- reportTypeData → const int
- 投诉类型-数据
- reportTypeHost → const int
- 投诉类型-域名
- reportTypeIdea → const int
- 投诉类型-意见
- reportTypeTeam → const int
- 投诉类型-群组
- reportTypeUser → const int
- 投诉类型-用户
- shipFromMember → const int
- 关系来源-群组
- shipFromQrcode → const int
- 关系来源-二维码
- shipFromSearch → const int
- 关系来源-搜索
- shipFromServiceHelper → const int
- 关系来源-客服助手
- 关系来源-名片
- shipFromSystemHelper → const int
- 关系来源-系统助手
- shipFromTeamCreator → const int
- 关系来源-创建者
- shipFromTeamPulledIn → const int
- 关系来源-被拉入
- shipStateNone → const int
- 关系状态-无关系
- shipStatePass → const int
- 关系状态-已建立
- shipStateWait → const int
- 关系状态-申请中
- userSexFemale → const int
- 第三方账号类型-女
- userSexMale → const int
- 第三方账号类型-男
- userThirdAlipay → const int
- 第三方账号类型-支付宝
- userThirdApple → const int
- 第三方账号类型-苹果
- userThirdCustom → const int
- 第三方账号类型-自定义
- userThirdWechat → const int
- 第三方账号类型-微信