os_type 0.2.2 copy "os_type: ^0.2.2" to clipboard
os_type: ^0.2.2 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 Flutter:

 $ flutter pub add os_type

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

dependencies:
  os_type: ^0.2.2

Alternatively, your editor might support 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
14
downloads

Publisher

unverified uploader

Weekly Downloads

Useful for OS and web environment detection, supports HarmonyOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on os_type

Packages that implement os_type