Collection class

Constructors

Collection({required String os, required String deviceSize, required bool newUser, required String country, required String deviceType, required String version})

Properties

collectedTime DateTime
Collection contains all the needed data that will be sendet to the analtics_api.
final
country String
getter/setter pair
deviceSize String
getter/setter pair
deviceType String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
newUser bool
getter/setter pair
os String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
getter/setter pair

Methods

getTimeInFormat(DateTime time) → dynamic
takes the time of the Collection element and parses into the needed time format
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareToSend() Map<String, dynamic>
parse the data into the excpeted structure for the analytics_api
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

collect() → dynamic
collect calls all needed functions to get the needed data.