Unverified Commit def31b42 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Improve DebugCreator docs (#74341)

parent 48b3e8bf
......@@ -1305,6 +1305,10 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
/// The object responsible for creating this render object.
///
/// Used in debug messages.
///
/// See also:
///
/// * [DebugCreator], which the [widgets] library uses as values for this field.
Object? debugCreator;
void _debugReportException(String method, Object exception, StackTrace stack) {
......
......@@ -6239,8 +6239,8 @@ class MultiChildRenderObjectElement extends RenderObjectElement {
/// A wrapper class for the [Element] that is the creator of a [RenderObject].
///
/// Attaching a [DebugCreator] attach the [RenderObject] will lead to better error
/// message.
/// Setting a [DebugCreator] as [RenderObject.debugCreator] will lead to better
/// error messages.
class DebugCreator {
/// Create a [DebugCreator] instance with input [Element].
DebugCreator(this.element);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment