Analytics.fromParameters constructor

Analytics.fromParameters({
  1. String? sdk,
  2. String? version,
  3. String? techVersion,
  4. String? osType,
  5. String? osVersion,
})

Implementation

Analytics.fromParameters({
  String? sdk, String? version, String? techVersion, String? osType, String? osVersion}) {
  this.sdk = sdk ?? this.sdk;
  sdkVersion = version ?? sdkVersion;
  this.techVersion = techVersion ?? getTechVersion();
  this.osType = osType ?? getOsType();
  this.osVersion = osVersion ?? '';
}