DiagnosticsBlock constructor

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 = DiagnosticLevel.info,
  9. bool allowTruncate = false,
  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({
  super.name,
  DiagnosticsTreeStyle super.style = DiagnosticsTreeStyle.whitespace,
  bool showName = true,
  super.showSeparator,
  super.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(
  showName: showName && name != null,
);