throttleSeverity property

Severity? get throttleSeverity

The severity based on the throttle speed.

Implementation

Severity? get throttleSeverity {
  if (data.throttle == 0) {
    return null;
  } else if (data.throttle <= 0.3) {
    return Severity.info;
  } else if (data.throttle <= 0.75) {
    return Severity.warning;
  } else {
    return Severity.critical;
  }
}