utils library

Name: Created by Fitem on 2023/5/31

Classes

AppUtils
Name: App工具类 基于 package_info_plus Created by Fitem on 2023/6/7
Connectivity
Discover network connectivity configurations: Distinguish between WI-FI and cellular, check WI-FI status and more.
ConnectivityPlusLinuxPlugin
The Linux implementation of ConnectivityPlatform.
ConnectivityUtils
Name: 网络监听工具类 基于 基于connectivity_plus Created by Fitem on 2023/7/2
DateUtils
Name: 日期时间工具类 Created by Fitem on 2023/7/17
DeviceUtils
Name: 设备工具类 基于 device_info_plus 目前仅支持 iOS 和 Android,其他平台返回空字符串 Created by Fitem on 2023/6/2
EncryptUtils
Name: 加密工具类 Created by Fitem on 2023/6/9
FormatUtils
Name: 格式化工具类 基于 intl Created by Fitem on 2023/7/7
LogUtils
Name: Log工具类 Created by Fitem on 2023/5/31
PathUtils
Name: Path工具类 基于 path_provider Created by Fitem on 2023/6/8
Permission
Defines the permissions which can be checked and requested.
PermissionUtils
Name: PermissionUtils Created by Fitem on 2023/7/4
PermissionWithService
A special kind of permission, used to access a service.
RC4
SharedPrefsUtils
Name: SP工具类 基于 shared_preferences Created by Fitem on 2023/5/31
ShareFile
分享文件对象
ShareUtils
Name: 分享工具类 基于 share_plus Created by Fitem on 2023/6/28
ToastUtils
Name: 吐司工具类 基于 fluttertoast Created by Fitem on 2023/6/1
UrlLauncherUtils
Name: URL跳转工具类 基于 url_launcher 注意使用此功能需要添加权限 在Android上,需要在AndroidManifest.xml中添加:
UuidUtils
Name: UUID工具类 基于 uuid Created by Fitem on 2023/6/4

Enums

AESModeType
ConnectivityResult
Connection status check result.
FToast
Toast显示时间 两种模式:lengthShort 显示时长 1秒钟、lengthLong 显示时长 5秒钟 Only for Android Platform
FToastGravity
Toast显示位置
PermissionStatus
Defines the state of a Permission.
ServiceStatus
Defines the different states a service can be in.
StorageDirectoryType

Extensions

BoolNullSafety on bool?
bool空安全扩展
DateTimeUtils on int
int转化DateTime工具类
DoubleNullSafety on double?
double空安全扩展
FuturePermissionStatusGetters on Future<PermissionStatus>
Utility getter extensions for the Future<PermissionStatus> type.
FutureServiceStatusGetters on Future<ServiceStatus>
Utility getter extensions for the Future<ServiceStatus> type.
IntNullSafety on int?
int空安全扩展
ListNullSafety on List?
List空安全扩展
PermissionActions on Permission
Actions that can be executed on a permission.
PermissionCheckShortcuts on Permission
Shortcuts for checking the status of a Permission.
PermissionListActions on List<Permission>
Actions that can be taken on a List of Permissions.
PermissionStatusGetters on PermissionStatus
Utility getter extensions for the PermissionStatus type.
ServicePermissionActions on PermissionWithService
Actions that apply only to permissions that have an associated service.
ServiceStatusGetters on ServiceStatus
Utility getter extensions for the ServiceStatus type.
StringNullSafety on String?
Name: 空安全工具类 Created by Fitem on 2023/6/27 String空安全扩展

Functions

openAppSettings() Future<bool>
Opens the app settings page.

Typedefs

ConnectivityResultCallBack = void Function(ConnectivityResult result)
订阅者回调网络状态
DeniedCallBack = void Function(bool isPermanentlyDenied)
授权失败回调
NetworkManagerClientFactory = NetworkManagerClient Function()
OtherCallBack = void Function(PermissionStatus status)
其他回调
SuccessCallBack = void Function()
授权成功回调