Platform
import 'dart:io';
void main() {
print(Platform);
print(Platform.numberOfProcessors); //16 线程数量
print(Platform.pathSeparator); //\ 操作系统文件路径分隔符号
print(Platform.localeName); //zh-CN Get the name of the current locale
print(Platform.operatingSystem); //windows 操作系统
print(Platform.operatingSystemVersion); //"Windows 10 Pro" 10.0 (Build 19041)
print(Platform.localHostname); //NB-20200612JEQR 本机设备名称
print(Platform.isLinux); //false
print(Platform.isMacOS); //false
print(Platform.isWindows); //true
print(Platform.isAndroid); //false
print(Platform.isIOS); //false
// Fuchsia是由Google公司开发的继Android和Chrome OS之后的第三个系统。
// Flutter引擎+Dart语言将很有可能成为Fuchsia系统主要的UI开发框架。
print(Platform.isFuchsia); //false
// print(Platform.environment); //false
// dart运行程序相对路径
print(Platform.executable); //C:\other-softs\flutter\bin\cache\dart-sdk\bin\dart.exe
// dart运行程序绝对路径
print(Platform.resolvedExecutable); //C:\other-softs\flutter\bin\cache\dart-sdk\bin\dart.exe
print(Platform.script); //file:///e:/my-projects/zq/flutter-demo/my-note/1.dart 脚本路径
print(Platform.executableArguments); //[]
print(Platform.packageConfig); //null
// 当前dart运行时的版本
print(Platform.version); //2.10.0 (stable) (Mon Sep 28 09:21:23 2020 +0200) on "windows_x64"
}