DiagnosticsBlock constructor Null safety

DiagnosticsBlock(
  1. {String? name,
  2. DiagnosticsTreeStyle style = DiagnosticsTreeStyle.whitespace,
  3. bool showName = true,
  4. bool showSeparator = true,
  5. String? linePrefix,
  6. Object? value,
  7. String? description,
  8. DiagnosticLevel level,
  9. bool allowTruncate,
  10. List<DiagnosticsNode> children = const <DiagnosticsNode>[],
  11. List<DiagnosticsNode> properties = const <DiagnosticsNode>[]}
)

Creates a diagnostic with properties specified by properties and children specified by children.

Implementation

DiagnosticsBlock({
  String? name,
  DiagnosticsTreeStyle style = DiagnosticsTreeStyle.whitespace,
  bool showName = true,
  bool showSeparator = true,
  String? linePrefix,
  this.value,
  String? description,
  this.level = DiagnosticLevel.info,
  this.allowTruncate = false,
  List<DiagnosticsNode> children = const<DiagnosticsNode>[],
  List<DiagnosticsNode> properties = const <DiagnosticsNode>[],
}) : _description = description,
     _children = children,
     _properties = properties,
  super(
  name: name,
  style: style,
  showName: showName && name != null,
  showSeparator: showSeparator,
  linePrefix: linePrefix,
);