We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c352738 commit a1aea2eCopy full SHA for a1aea2e
packages/flutter/lib/src/foundation/diagnostics.dart
@@ -2127,7 +2127,12 @@ abstract class Diagnosticable {
2127
2128
@override
2129
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.debug }) {
2130
- return toDiagnosticsNode(style: DiagnosticsTreeStyle.singleLine).toString(minLevel: minLevel);
+ String fullString;
2131
+ assert(() {
2132
+ fullString = toDiagnosticsNode(style: DiagnosticsTreeStyle.singleLine).toString(minLevel: minLevel);
2133
+ return true;
2134
+ }());
2135
+ return fullString ?? toStringShort();
2136
}
2137
2138
/// Returns a debug representation of the object that is used by debugging
0 commit comments