r2d2 0.0.1+1 copy "r2d2: ^0.0.1+1" to clipboard
r2d2: ^0.0.1+1 copied to clipboard

outdatedDart 1 only

A modern device detection package

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add r2d2

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

dependencies:
  r2d2: ^0.0.1+1

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

Import it

Now in your Dart code, you can use:

import 'package:r2d2/client/client_device.dart';
import 'package:r2d2/common/device_face.dart';
import 'package:r2d2/r2d2_common.dart';
import 'package:r2d2/server/server_device.dart';
0
likes
0
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

A modern device detection package

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, http_server, logging

More

Packages that depend on r2d2