BytedeskUtils class
Constructors
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 Properties
Static Methods
-
calculateSales(
int sales) → String -
clearUserCache(
) → void -
client(
) → String -
clientSchool(
) → String -
convertPrice(
int price) → String -
currentTimeMillis(
) → int -
exitLogin(
BuildContext context) → void -
formatedDateNow(
) → String -
formatedTimestampNow(
) → 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
-
getHostUri(
String path, [Map< String, dynamic> ? queryParameters]) → Uri -
getLatitude(
) → double? -
getLongtitude(
) → double? -
getNewsTimeStr(
DateTime date) → String -
getNickname(
) → String? -
getTimeDuration(
String comTime) → String -
getUid(
) → String? -
isAuthenticated(
) → bool? -
isCurrentChatKfPage(
) → bool? -
isDarkMode(
BuildContext context) → bool -
isLogin(
) → bool? -
isMqttConnected(
) → bool -
mqttConnect(
) → bool -
mqttDisconnect(
) → void -
mqttReConnect(
) → bool -
printLog(
dynamic content) → void -
randomColor(
) → Color -
removeDecimalZeroFormat(
double n) → String -
requestPermission(
) → Future< bool> -
saveImage(
String imageUrl, {bool isAsset = false}) → Future< void> -
保存图片到相册
默认为下载网络图片,如需下载资源图片,需要指定
isAsset
为true
。 -
url2query(
String url) → Map
Constants
- DAYS_LIMIT → const double
- HOURS_LIMIT → const double
- MILLIS_LIMIT → const double
- MINUTES_LIMIT → const double
- SECONDS_LIMIT → const double