Validator class
限制参数
Constructors
- Validator()
-
Validator.fromJson(Map<
String, dynamic> map) -
factory
- Validator.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, {Validator? parser}) → void -
通过基本数据类型的Map来更新字段。来源
map
可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库 -
updateByKValues(
Map< String, dynamic> map) → void - 通过用字符串key读取字段值的Map来更新字段
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- cashpwdLen → const int
- 支付密码长度
- cashpwdRegExp → const String
- 支付密码正则表达式
- cashpwdRegTip → const String
- 支付密码正则表达式介绍
- cusmarkScoreMax → const int
- 自定义标记类允许的最大分数
- cusmarkScoreMin → const int
- 自定义标记类允许的最小分数
- customxNoMax → const int
- 自定义数据类允许的最大序号
- customxNoMin → const int
- 自定义数据类允许的最小序号
- identLenMax → const int
- ID最大长度
- identLenMin → const int
- ID最小长度
- identRegExp → const String
- ID验证正则表达式
- identRegTip → const String
- ID验证正则表达式介绍
- linkLenMax → const int
- 链接最大长度
- linkLenMin → const int
- 链接最小长度
- longTextLenMax → const int
- 长字符串最大长度
- longTextLenMin → const int
- 长字符串最小长度
- mediumTextLenMax → const int
- 中等字符串最大长度
- mediumTextLenMin → const int
- 中等字符串最小长度
- noLenMax → const int
- 账号最大长度
- noLenMin → const int
- 账号最小长度
- noRegExp → const String
- 账号验证正则表达式
- noRegTip → const String
- 账号验证正则表达式介绍
- pageItemMax → const int
- 分页查询每页最大的数量
- phoneLenMax → const int
- 手机号最大长度
- phoneLenMin → const int
- 手机号最小长度
- phoneRegExp → const String
- 手机号验证正则表达式
- phoneRegTip → const String
- 手机号验证正则表达式介绍
- pwdLenMax → const int
- 密码最大长度
- pwdLenMin → const int
- 密码最小长度
- pwdRegExp → const String
- 密码验证正则表达式
- pwdRegTip → const String
- 密码验证正则表达式介绍
- randcodeLen → const int
- 验证码长度
- randcodeRegExp → const String
- 验证码正则表达式
- randcodeRegTip → const String
- 验证码正则表达式介绍
- readpackTimeoutForbid → const int
- 外部路由禁止再抢已发红包的超时时间(秒)
- readpackTimeoutReturn → const int
- 任务检测红包是否需要退回的超时时间(秒)
- realtimeMax → const int
- 实时通讯人数最大的数量
- realtimeMin → const int
- 实时通讯人数最小的数量
- remoteNotifyMax → const int
- 远程通知请求最大通知次数
- remoteVerifyMax → const int
- 远程验证请求最大尝试次数
- rmbfenBonusesMin → const int
- 分红相关操作的RMB金额最小数量(分)
- shortTextLenMax → const int
- 短字符串最大长度
- shortTextLenMin → const int
- 短字符串最小长度
- signLenMax → const int
- 签名最大长度
- signLenMin → const int
- 签名最小长度
- signRegExp → const String
- 签名验证正则表达式
- signRegTip → const String
- 签名验证正则表达式介绍
- teamHeadMax → const int
- 群组头像列表最大的数量
- teamPullMax → const int
- 群组单次拉人最大的数量
- tokenLenMax → const int
- 口令最大长度
- tokenLenMin → const int
- 口令最小长度
- tokenRegExp → const String
- 口令验证正则表达式
- tokenRegTip → const String
- 口令验证正则表达式介绍
- transcationSpan → const int
- 事务检测间隔时间(秒)
- ultralongTextLenMax → const int
- 超长字符串最大长度
- ultralongTextLenMin → const int
- 超长字符串最小长度
- ultrashortTextLenMax → const int
- 超短字符串最大长度
- ultrashortTextLenMin → const int
- 超短字符串最小长度
- verylongTextLenMax → const int
- 很长字符串最大长度
- verylongTextLenMin → const int
- 很长字符串最小长度
- webrtcInterval → const int
- WebRTC心跳发送间隔(秒)
- webrtcTimeouts → const int
- WebRTC心跳超时时间(秒)