DiagnosticsStackTrace.singleFrame constructor Null safety

DiagnosticsStackTrace.singleFrame(
  1. String name,
  2. {required String frame,
  3. bool showSeparator = true}
)

Creates a diagnostic describing a single frame from a StackTrace.

Implementation

DiagnosticsStackTrace.singleFrame(
  String name, {
  required String frame,
  super.showSeparator,
}) : super(
  name: name,
  properties: <DiagnosticsNode>[_createStackFrame(frame)],
  style: DiagnosticsTreeStyle.whitespace,
);