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