BytedeskUtils class Null safety

Constructors

BytedeskUtils()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Properties

isAndroid bool
read-only
isDesktop bool
read-only
isFuchsia bool
read-only
isIOS bool
read-only
isLinux bool
read-only
isMacOS bool
read-only
isMobile bool
read-only
isWeb bool
read-only
isWindows bool
read-only

Static Methods

calculateSales(int sales) String
clearUserCache() → void
client() String
clientSchool() String
convertPrice(int price) String
currentTimeMillis() int
exitLogin(BuildContext context) → void
formatedDateNow() String
getAccessToken() String?
getAvatar() String?
getBaseUrl() String
getClient() String
getDateStr(DateTime date) String
getDescription() String?
getDistance(double lat1, double lng1, double lat2, double lng2) double
根据两点经纬度 使用math 算出之间距离 https://blog.csdn.net/weixin_38025168/article/details/107491452
getLatitude() double?
getLongtitude() double?
getNewsTimeStr(DateTime date) String
getNickname() String?
getTimeDuration(String comTime) String
getUid() String?
isAuthenticated() bool?
isCurrentChatKfPage() bool?
isLogin() bool?
isMqttConnected() bool
mqttConnect() bool
mqttReConnect() bool
randomColor() Color
removeDecimalZeroFormat(double n) String
requestPermission() Future<bool>
saveImage(String imageUrl, {bool isAsset = false}) Future<void>
保存图片到相册 默认为下载网络图片,如需下载资源图片,需要指定 isAssettrue
url2query(String url) Map

Constants

DAYS_LIMIT → const double
30 * HOURS_LIMIT
HOURS_LIMIT → const double
24 * MINUTES_LIMIT
MILLIS_LIMIT → const double
1000.0
MINUTES_LIMIT → const double
60 * SECONDS_LIMIT
SECONDS_LIMIT → const double
60 * MILLIS_LIMIT