Browser class

Matches a browser name with how it is represented in window.navigator

Constructors

Browser(String name, bool matchesNavigator(NavigatorProvider navigator), Version parseVersion(NavigatorProvider navigator), {String className})

Properties

className String
The CSS class value that should be used instead of lowercase name (optional).
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isChrome bool
read-only
isFirefox bool
read-only
isInternetExplorer bool
read-only
isSafari bool
read-only
isWKWebView bool
read-only
name String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
version Version
read-only

Methods

clearVersion() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Properties

read / write
UnknownBrowser Browser
read / write

Static Methods

getCurrentBrowser() Browser