FlutterUserAgent class

Constructors

FlutterUserAgent()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

properties Map<String, dynamic>?
Return a map of properties that can be used to generate the user agent string.
no setter
userAgent String?
Returns the device's user agent.
no setter
webViewUserAgent String?
Returns the device's webview user agent.
no setter

Static Methods

getProperty(String property) → dynamic
Fetch a property that can be used to build your own user agent string.
getPropertyAsync(String property) → dynamic
Fetch a property asynchronously that can be used to build your own user agent string.
init({dynamic force = false}) Future
Initialize the module.
release() → void
Release all the user agent properties statically cached. You can call this function when you no longer need to access the properties.