toStringDeep method Null safety

  1. @override
String toStringDeep(
  1. {String prefixLineOne = '',
  2. String? prefixOtherLines = '',
  3. DiagnosticLevel minLevel = DiagnosticLevel.debug}
)
override

Returns a description of the tree rooted at this node. If the prefix argument is provided, then every line in the output will be prefixed by that string.

Implementation

@override
String toStringDeep({
  String prefixLineOne = '',
  String? prefixOtherLines = '',
  DiagnosticLevel minLevel = DiagnosticLevel.debug,
}) {
  RenderObject? debugPreviousActiveLayout;
  assert(() {
    debugPreviousActiveLayout = _debugActiveLayout;
    _debugActiveLayout = null;
    return true;
  }());
  final String result = super.toStringDeep(
    prefixLineOne: prefixLineOne,
    prefixOtherLines: prefixOtherLines,
    minLevel: minLevel,
  );
  assert(() {
    _debugActiveLayout = debugPreviousActiveLayout;
    return true;
  }());
  return result;
}