DiagnosticableNode<T extends Diagnosticable> constructor Null safety

DiagnosticableNode<T extends Diagnosticable>(
  1. {String? name,
  2. required T value,
  3. required DiagnosticsTreeStyle? style}
)

Create a diagnostics describing a Diagnosticable value.

The value argument must not be null.

Implementation

DiagnosticableNode({
  super.name,
  required this.value,
  required super.style,
}) : assert(value != null);