WebPlatformDetect class abstract

Pure user-agent string heuristics backing the web implementation of GeneralPlatform.

The matching logic lives here, decoupled from package:web, so it can be unit tested on the Dart VM where browser bindings are unavailable.

Constructors

WebPlatformDetect()

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 Methods

isIOS(String platform, int maxTouchPoints) bool
Whether the given navigator values identify an iOS browser.
isMacOS(String appVersion, String platform, int maxTouchPoints) bool
Whether the given navigator values identify a macOS browser.