common/utils/index library

Classes

DateFormats
DateUtil
Date Util.
EncryptUtil
Encrypt Util.
EnInfo
EnNormalInfo
JsonUtil
Json Util.
JwtDecoder
Logger
日志工具
MoneyUtil
Money Util.
NumUtil
Num Util.
ObjectUtil
Object Util.
PermissionUtil
动态授权工具
PrettyDioLogger
RegexUtil
Regex Util.
RSAUtil
RSA工具类
TextUtil
Text Util.
TimelineInfo
Timeline information configuration. Timeline信息配置.
TimelineUtil
TimelineUtil
TimerUtil
TimerUtil.
Toast
Toast工具
ZhInfo
ZhNormalInfo

Enums

DayFormat
(xx)Configurable output. (xx)为可配置输出.
MoneyFormats
MoneyUnit

Properties

ID_CARD_PROVINCE_DICT List<String>
id card province dict.
getter/setter pair
MONTH_DAY Map<int, int>
month->days.
getter/setter pair

Functions

clearSharedPref() Future<bool>
clear SharedPref
getBoolAsync(String key, {bool defaultValue = false}) bool
Returns a Bool if exists in SharedPref
getDoubleAsync(String key, {double defaultValue = 0.0}) double
Returns a Double if exists in SharedPref
getIntAsync(String key, {int defaultValue = 0}) int
Returns a Int if exists in SharedPref
getJSONAsync(String key, {Map<String, dynamic>? defaultValue}) Map<String, dynamic>
Returns a JSON if exists in SharedPref
getMatchingSharedPrefKeys(String key) List<String>
Returns List of Keys that matches with given Key
getStringAsync(String key, {String defaultValue = ''}) String
Returns a String if exists in SharedPref
getStringListAsync(String key) List<String>?
Returns a StringList if exists in SharedPref
removeKey(String key) Future<bool>
remove key from SharedPref
setLocaleInfo(String locale, TimelineInfo timelineInfo) → void
add custom configuration.
setValue(String key, dynamic value, {bool print = true}) Future<bool>
Add a value in SharedPref based on their type - Must be a String, int, bool, double, Map<String, dynamic> or StringList

Typedefs

OnTimerTickCallback = void Function(int millisUntilFinished)
timer callback.(millisUntilFinished 毫秒).