platform-common-utilities/packages/user_agent/example/example.dart

8 lines
255 B
Dart
Raw Normal View History

import 'package:user_agent_analyzer/user_agent_analyzer.dart';
void main() {
var ua = UserAgent(
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36');
print(ua.isChrome);
}