PercentProperty constructor

PercentProperty(
  1. String name,
  2. double? fraction,
  3. {String? ifNull,
  4. bool showName = true,
  5. String? tooltip,
  6. String? unit,
  7. DiagnosticLevel level = DiagnosticLevel.info}
)

Create a diagnostics property for doubles that represent percentages or fractions.

Setting showName to false is often reasonable for PercentProperty objects, as the fact that the property is shown as a percentage tends to be sufficient to disambiguate its meaning.

Implementation

PercentProperty(
  super.name,
  super.fraction, {
  super.ifNull,
  super.showName,
  super.tooltip,
  super.unit,
  super.level,
});