CpuUsageInfoModel constructor

const CpuUsageInfoModel({
  1. double? userPercentage,
  2. double? sysPercentage,
  3. double? idlePercentage,
})

Factory constructor for creating a new CpuUsageInfoModel instance.

Implementation

const factory CpuUsageInfoModel({
  /// The percentage of CPU time spent on user processes.
  double? userPercentage,

  /// The percentage of CPU time spent on system (kernel) processes.
  double? sysPercentage,

  /// The percentage of CPU time spent idle.
  double? idlePercentage,
}) = _CpuUsageInfoModel;