getExtremum method

  1. @override
Future<Extremum<List<num>>> getExtremum()

Implementation

@override
Future<Extremum<List<num>>> getExtremum() async {
  final info = await CpuInfoProvider().extremumFrequency;

  final mins = <double>[];
  final maxs = <double>[];
  for (var element in info.values) {
    mins.add(element.min);
    maxs.add(element.max);
  }

  return Extremum(mins, maxs);
}