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(
String name,
int? value, {
String? ifNull,
bool showName = true,
String? unit,
Object? defaultValue = kNoDefaultValue,
DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
DiagnosticLevel level = DiagnosticLevel.info,
}) : assert(showName != null),
assert(level != null),
assert(style != null),
super(
name,
value,
ifNull: ifNull,
showName: showName,
unit: unit,
defaultValue: defaultValue,
style: style,
level: level,
);