getDeviceBrand static method
Implementation
static Future<String> getDeviceBrand() async {
try {
if (Platform.isAndroid) {
final androidInfo = await deviceInfoPlugin.androidInfo;
return androidInfo.brand;
}
} catch (e, stackTrace) {
StormyLog.e(
'AppUtils.getDeviceBrand: 获取设备品牌失败',
stackTrace: stackTrace,
extra: {'error': e.toString()},
);
return 'Unknown Brand';
}
return 'Unknown Brand';
}