os 1.0.1 copy "os: ^1.0.1" to clipboard
os: ^1.0.1 copied to clipboard

API for information about the operating system and the environment. Works in all platforms, including browsers.

example/example.dart

import 'package:os/os.dart';

Future<void> main() async {
  print('OS: ${OperatingSystemType.current}');
  print('OS by Apple: ${OperatingSystemType.current.isCupertino}');
  print('debug mode: $isRunningInDebugMode');
  print('browser: $isRunningInWeb');
  print('test: $isRunningInTest');
}
5
likes
150
points
68
downloads

Publisher

verified publisherdint.dev

Weekly Downloads

API for information about the operating system and the environment. Works in all platforms, including browsers.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on os