os_type 0.0.1 copy "os_type: ^0.0.1" to clipboard
os_type: ^0.0.1 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.0.1

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
0
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

Useful for OS and web environment detection, supports HarmonyOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on os_type

Packages that implement os_type