maxEntry property

RadarEntry get maxEntry

defines the maximum RadarEntry value in all dataSets we use this value to calculate the maximum value of ticks.

Implementation

RadarEntry get maxEntry {
  var maximum = dataSets.first.dataEntries.first;

  for (final dataSet in dataSets) {
    for (final entry in dataSet.dataEntries) {
      if (entry.value > maximum.value) maximum = entry;
    }
  }
  return maximum;
}