AppUsageData constructor

AppUsageData({
  1. String? packageName,
  2. String? appLabel,
  3. DateTime? installTime,
  4. String? icon,
  5. List<Usages>? usages,
})

Implementation

AppUsageData({
  this.packageName,
  this.appLabel,
  this.installTime,
  this.icon,
  this.usages,
}) {
  // Decode Base64 icon to Uint8List if available
  if (icon != null) {
    memoryIcon = base64Decode(icon!);
  }
}