platform_detect 1.2.0 copy "platform_detect: ^1.2.0" to clipboard
platform_detect: ^1.2.0 copied to clipboard

outdatedDart 1 only

A lightweight library for detecting the running browser and OS

codecov

platform_detect #

A library for detecting browser and platform type and version.

Usage #

A simple usage example:

import 'package:platform_detect/platform_detect.dart';

main() {
  if (browser.isChrome) {
	print('thank you for being a friend');
  }
  
  if (operatingSystem.isMac) {
	print('');
  }
}
36
likes
0
pub points
91%
popularity

Publisher

verified publisherworkiva.com

A lightweight library for detecting the running browser and OS

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

pub_semver

More

Packages that depend on platform_detect