UserAgent class

The user-agent (device) information of the user's session.

Inheritance

Constructors

UserAgent({required String family, required String major, required String minor, required String patch, required Agent device, required Agent os})
Creates a instance of UserAgent
UserAgent.fromJson(Map<String, dynamic> json)
Creates a instance of UserAgent from JsonMap.

Properties

device Agent
Device and os information's
getter/setter pair
family String
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
major String
getter/setter pairinherited
minor String
getter/setter pairinherited
os Agent
Device and os information's
getter/setter pair
patch String
getter/setter pairinherited
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
toJson() Map<String, dynamic>
Convert instance to JsonMap.
override
toString() String
A string representation of this object.
inherited

Operators

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