os_cpu 1.0.1 os_cpu: ^1.0.1 copied to clipboard
API for CPU information. Works in all platforms, including browsers.
Introduction #
This Dart package that provides information about the CPU. The package is designed to work in all platforms, including browsers.
Getting started #
1.Add dependency #
In pubspec.yaml:
dependencies:
os_cpu: ^1.0.1
2.Use #
Use CpuType.get or CpuType.getSync:
import 'package:os_cpu/os_cpu.dart';
Future<void> main() async {
final cpuType = await CpuType.get(); // OR CpuType.getSync()
print(cpuType);
}