DoubleProperty constructor Null safety
- String name,
- double? value,
- {String? ifNull,
- String? unit,
- String? tooltip,
- Object? defaultValue = kNoDefaultValue,
- bool showName = true,
- DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
- DiagnosticLevel level = DiagnosticLevel.info}
If specified, unit
describes the unit for the value
(e.g. px).
The showName
, style
, and level
arguments must not be null.
Implementation
DoubleProperty(
super.name,
super.value, {
super.ifNull,
super.unit,
super.tooltip,
super.defaultValue,
super.showName,
super.style,
super.level,
}) : assert(showName != null),
assert(style != null),
assert(level != null);