UserAgent class

Utils for device detection.

Constructors

UserAgent(String value)

Properties

cssPrefix String
Gets the CSS property prefix for the current platform.
no setter
hashCode int
The hash code for this object.
no setterinherited
isAndroid bool
no setter
isAndroidPhone bool
no setter
isAndroidTablet bool
no setter
isBlackberry bool
no setter
isBlackberryPhone bool
no setter
isBlackberryTablet bool
no setter
isChrome bool
Determines if the current device is running Chrome.
no setter
isDesktop bool
no setter
isFirefox bool
Determines if the current device is running Firefox.
no setter
isIE bool
Determines if the current device is running Internet Explorer.
no setter
isMacOS bool
no setter
isMobile bool
no setter
isOpera bool
Determines if the current device is running Opera.
no setter
isSafari bool
no setter
isTablet bool
no setter
isWebKit bool
Determines if the current device is running WebKit.
no setter
isWindows bool
no setter
isWindowsPhone bool
no setter
isWindowsTablet bool
no setter
propertyPrefix String
Prefix as used for JS property names.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
final

Methods

contains(String needle) bool
Determines if the user agent string contains the desired string. Case-insensitive.
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