DiagnosticableNode<T extends Diagnosticable> constructor

DiagnosticableNode<T extends Diagnosticable>({String name, @required T value, @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,
     );