random_user_agents 0.0.2 copy "random_user_agents: ^0.0.2" to clipboard
random_user_agents: ^0.0.2 copied to clipboard

retracted

A flutter package for generating random user agents.随机生成User-Agent.

Random_User_Agents #

pub package

A flutter package for generating random user agents. 随机生成User-Agent.

Getting started #

flutter pub add random_user_agents

Usage #

import 'package:random_user_agents/random_user_agents.dart';

void main() {
  /// direct use
  /// 直接使用
  final ua = RandomUserAgents.random();
  print(ua);
  // output: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

  /// use filter function
  /// 使用自定义过滤函数
  final u = RandomUserAgents((value) {
    return value.contains("Android");
  });
  print(u.getUserAgent());
  // output: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
}
3
likes
0
points
154
downloads

Publisher

verified publisherdev.tatakai.top

Weekly Downloads

A flutter package for generating random user agents.随机生成User-Agent.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on random_user_agents