Fix link in RenderObjectWidget doc comment (#150600)

Fix a link in the `RenderObjectWidget` doc comment. The comment recommends subclassing `SingleChildRenderObjectElement` where it means to recommend subclassing `SingleChildRenderObjectWidget`.

Fixes #150597.
This commit is contained in:
Samuel Wrenn 2024-06-25 13:45:55 -04:00 committed by GitHub
parent a7967703cd
commit b8211b3d94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1878,7 +1878,7 @@ abstract class InheritedWidget extends ProxyWidget {
/// object widgets subclass one of:
///
/// * [LeafRenderObjectWidget], if the widget has no children.
/// * [SingleChildRenderObjectElement], if the widget has exactly one child.
/// * [SingleChildRenderObjectWidget], if the widget has exactly one child.
/// * [MultiChildRenderObjectWidget], if the widget takes a list of children.
/// * [SlottedMultiChildRenderObjectWidget], if the widget organizes its
/// children in different named slots.