DoubleProperty.lazy constructor Null safety
- String name,
- ComputePropertyValueCallback<
double> computeValue, - {String? ifNull,
- bool showName = true,
- String? unit,
- String? tooltip,
- Object? defaultValue = kNoDefaultValue,
- 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.
The showName
and level
arguments must not be null.
Implementation
DoubleProperty.lazy(
super.name,
super.computeValue, {
super.ifNull,
super.showName,
super.unit,
super.tooltip,
super.defaultValue,
super.level,
}) : assert(showName != null),
assert(level != null),
super.lazy();