DoubleProperty.lazy constructor

DoubleProperty.lazy(
  1. String name,
  2. ComputePropertyValueCallback<double> computeValue,
  3. {String? ifNull,
  4. bool showName = true,
  5. String? unit,
  6. String? tooltip,
  7. Object? defaultValue = kNoDefaultValue,
  8. DiagnosticLevel level = DiagnosticLevel.info}
)

Property with a value that is computed only when needed.

Use if computing the property value may throw an exception or is expensive.

Implementation

DoubleProperty.lazy(
  super.name,
  super.computeValue, {
  super.ifNull,
  super.showName,
  super.unit,
  super.tooltip,
  super.defaultValue,
  super.level,
}) : super.lazy();