randomUserAgent function

String randomUserAgent(
  1. UserAgentDevice type
)

Returns a random User-Agent string for the given type.

Implementation

String randomUserAgent(UserAgentDevice type) => _identity(type).ua;