Skip to main content

os_type 0.3.0 copy "os_type: ^0.3.0" to clipboard
os_type: ^0.3.0 copied to clipboard

Useful for OS and web environment detection, supports HarmonyOS.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add os_type

With Flutter:

 $ flutter pub add os_type

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  os_type: ^0.3.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:os_type/os_type.dart';
0
likes
160
points
285
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Useful for OS and web environment detection, supports HarmonyOS.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on os_type