StringProperty constructor Null safety

StringProperty(
  1. String name,
  2. String? value,
  3. {String? description,
  4. String? tooltip,
  5. bool showName = true,
  6. Object? defaultValue = kNoDefaultValue,
  7. bool quoted,
  8. String? ifEmpty,
  9. DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
  10. DiagnosticLevel level = DiagnosticLevel.info}
)

Create a diagnostics property for strings.

The showName, quoted, style, and level arguments must not be null.

Implementation

StringProperty(
  String name,
  String? value, {
  String? description,
  String? tooltip,
  bool showName = true,
  Object? defaultValue = kNoDefaultValue,
  this.quoted = true,
  String? ifEmpty,
  DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
  DiagnosticLevel level = DiagnosticLevel.info,
}) : assert(showName != null),
     assert(quoted != null),
     assert(style != null),
     assert(level != null),
     super(
  name,
  value,
  description: description,
  defaultValue: defaultValue,
  tooltip: tooltip,
  showName: showName,
  ifEmpty: ifEmpty,
  style: style,
  level: level,
);