UserAgent class

Type of MyUser's user agent.

Its values are always considered to be non-empty, and meet the following requirements:

  • consist only from ASCII characters;
  • contain at least one non-space-like character.
Inheritance
Available extensions

Constructors

UserAgent(String val)
const
UserAgent.fromJson(String val)
Constructs a UserAgent from the provided val.
factory

Properties

application → String

Available on UserAgent, provided by the UserAgentExtension extension

Returns the Config.userAgentProduct with the version parsed from this UserAgent.
no setter
hashCode → int
The hash code for this object.
no setterinherited
localized → String

Available on UserAgent, provided by the UserAgentExtension extension

Returns the human readable name of this UserAgent, if any, or otherwise returns the whole UserAgent.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
system → String

Available on UserAgent, provided by the UserAgentExtension extension

Returns the operating system of this UserAgent.
no setter
val → String
Actual value wrapped by this NewType.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
Returns a String representing this UserAgent.
toString() → String
A string representation of this object.
inherited

Operators

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