IntProperty constructor Null safety
- String name,
- int? value,
- {String? ifNull,
- bool showName = true,
- String? unit,
- Object? defaultValue = kNoDefaultValue,
- DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
- DiagnosticLevel level = DiagnosticLevel.info}
Create a diagnostics property for integers.
The showName
, style
, and level
arguments must not be null.
Implementation
IntProperty(
super.name,
super.value, {
super.ifNull,
super.showName,
super.unit,
super.defaultValue,
super.style,
super.level,
}) : assert(showName != null),
assert(level != null),
assert(style != null);