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({
  String? name,
  required this.value,
  required DiagnosticsTreeStyle? style,
}) : assert(value != null),
     super(
       name: name,
       style: style,
     );