This commit is contained in:
zhutao
2025-08-29 14:23:55 +08:00
parent 6a9c801bd2
commit 0af8d30cae
5 changed files with 217 additions and 3 deletions

View File

@@ -3,4 +3,12 @@ import 'dart:io';
///判断是否是安卓
bool isAndroid(){
return Platform.isAndroid;
}
}
/// 获取非空的值
String? getNotEmpty(String? value) {
if (value != null && value.isNotEmpty) {
return value;
}
return null;
}