Browser class

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

Constructors

Browser(String name, bool _matchesNavigator(NavigatorProvider), Version _parseVersion(NavigatorProvider), {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.
no setterinherited
isChrome bool
no setter
isFirefox bool
no setter
isInternetExplorer bool
no setter
isSafari bool
no setter
isWKWebView bool
no setter
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version → Version
no setter

Methods

clearVersion() → void
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

getter/setter pair
UnknownBrowser Browser
getter/setter pair

Static Methods

getCurrentBrowser() Browser