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