DiagnosticsBlock constructor
- String? name,
- DiagnosticsTreeStyle style = DiagnosticsTreeStyle.whitespace,
- bool showName = true,
- bool showSeparator = true,
- String? linePrefix,
- Object? value,
- String? description,
- DiagnosticLevel level = DiagnosticLevel.info,
- bool allowTruncate = false,
- List<
DiagnosticsNode> children = const <DiagnosticsNode>[], - 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,
);