RcTools class

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

copyText(String text) Future<bool>
复制到剪切板
dateFormat(int timestamp, [String format = 'YYYY-MM-DD hh:mm:ss']) String
格式化时间戳为指定格式的字符串。
durationFormat(Duration duration) String
Duration格式化
fromQuery(String url, Map<String, dynamic> params) String
查询字符串格式化
getDayLastTimestamp({DateTime? dateTime, bool isFull = true}) int
获取某天最后一秒时间戳 dateTime 默认为当天 isFull true 13位 or false 10位
getTimestamp({DateTime? dateTime, bool isFull = true}) int
获取时间戳 dateTime 默认为当前时间 isFull true 13位 or false 10位
intercept(String text, {int width = 2, bool isZero = true}) String
截取小数位数
randomId() String
随机id
removeZero(String text) String
结尾去零
replaceWithSymbol(String text, {int begin = 6, int end = 6, String symbol = '****'}) String
字符串脱敏
zeroText(String text) String
文字插入零宽度空格