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 -
convertPrice(
int price) → String -
currentTimeMillis(
) → int -
exitLogin(
BuildContext context) → void -
formatedDateNow(
) → String -
formatedTimestampNow(
) → String -
getBaseUrl(
) → String -
getClient(
) → String -
getDateStr(
DateTime date) → String -
getDistance(
double lat1, double lng1, double lat2, double lng2) → double - 根据两点经纬度 使用math 算出之间距离 https://blog.csdn.net/weixin_38025168/article/details/107491452
-
getFileType(
String filePath) → String -
getHostUri(
String path, [Map< String, dynamic> ? queryParameters]) → Uri -
getNewsTimeStr(
DateTime date) → String -
getTimeDuration(
String comTime) → String -
isDarkMode(
BuildContext context) → bool -
isMqttConnected(
) → bool -
messageToJson(
String uid, String type, String content, ThreadProtobuf thread) → String? -
mqttDisconnect(
) → void -
mqttReConnect(
) → bool -
mylaunchUrl(
String url) → Future< void> -
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