WebBrowserInfo class

Implemented types

Constructors

WebBrowserInfo({required String? appCodeName, required String? appName, required String? appVersion, required int? deviceMemory, required String? language, required List? languages, required String? platform, required String? product, required String? productSub, required String? userAgent, required String? vendor, required String? vendorSub, required int? maxTouchPoints, required int? hardwareConcurrency})
Web Browser info class.

Properties

appCodeName String?
the internal "code" name of the current browser. Note: Do not rely on this property to return the correct value.
final
appName String?
a DOMString with the official name of the browser. Note: Do not rely on this property to return the correct value.
final
appVersion String?
the version of the browser as a DOMString. Note: Do not rely on this property to return the correct value.
final
browserName BrowserName
the name of the current browser.
no setter
data Map<String, dynamic>
Device information data Warning: The returned Map may not be JSON-encodable.
no setteroverride
deviceMemory int?
the amount of device memory in gigabytes. This value is an approximation given by rounding to the nearest power of 2 and dividing that number by 1024.
final
hardwareConcurrency int?
the number of logical processor cores available.
final
hashCode int
The hash code for this object.
no setterinherited
language String?
a DOMString representing the preferred language of the user, usually the language of the browser UI. The null value is returned when this is unknown.
final
languages List?
an array of DOMString representing the languages known to the user, by order of preference.
final
maxTouchPoints int?
the maximum number of simultaneous touch contact points are supported by the current device.
final
platform String?
the version of the browser as a DOMString. Note: Do not rely on this property to return the correct value.
final
product String?
Always returns 'Gecko', on any browser. Note: Do not rely on this property to return the correct value. This property is kept only for compatibility purpose.
final
productSub String?
the build number of the current browser Note: Do not rely on this property to return the correct value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAgent String?
the build number of the current browser (e.g., "20060909")
final
vendor String?
the vendor name of the current browser
final
vendorSub String?
Returns the vendor version number (e.g. "6.1") Note: Do not rely on this property to return the correct value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
For legacy purposes
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map<String, dynamic> map) WebBrowserInfo
Deserializes from the map message received from Navigator.