user_agent_parser 0.0.1+2 user_agent_parser: ^0.0.1+2 copied to clipboard
A Dart-based User-Agent string parser. This package aims to identify the type of web browser entirely from a User-Agent string.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add user_agent_parser
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
user_agent_parser: ^0.0.1+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:user_agent_parser/user_agent_parser.dart';