mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-14 01:44:17 +08:00
13 lines
298 B
Dart
13 lines
298 B
Dart
import 'dart:io';
|
|
|
|
String? get device => null;
|
|
|
|
String? get clientPlatform {
|
|
if (Platform.isAndroid) return "android";
|
|
if (Platform.isIOS) return "ios";
|
|
if (Platform.isLinux) return "linux";
|
|
if (Platform.isMacOS) return "macos";
|
|
if (Platform.isWindows) return "windows";
|
|
return null;
|
|
}
|