File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/flutter/lib/src/widgets Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1166,12 +1166,24 @@ abstract class RenderObjectWidget extends Widget {
1166
1166
/// Creates an instance of the [RenderObject] class that this
1167
1167
/// [RenderObjectWidget] represents, using the configuration described by this
1168
1168
/// [RenderObjectWidget] .
1169
+ ///
1170
+ /// This method should not do anything with the children of the render object.
1171
+ /// That should instead be handled by the method that overrides
1172
+ /// [RenderObjectElement.mount] in the object rendered by this object's
1173
+ /// [createElement] method. See, for example,
1174
+ /// [SingleChildRenderObjectElement.mount] .
1169
1175
@protected
1170
1176
RenderObject createRenderObject (BuildContext context);
1171
1177
1172
1178
/// Copies the configuration described by this [RenderObjectWidget] to the
1173
1179
/// given [RenderObject] , which will be of the same type as returned by this
1174
1180
/// object's [createRenderObject] .
1181
+ ///
1182
+ /// This method should not do anything to update the children of the render
1183
+ /// object. That should instead be handled by the method that overrides
1184
+ /// [RenderObjectElement.update] in the object rendered by this object's
1185
+ /// [createElement] method. See, for example,
1186
+ /// [SingleChildRenderObjectElement.update] .
1175
1187
@protected
1176
1188
void updateRenderObject (BuildContext context, @checked RenderObject renderObject) { }
1177
1189
You can’t perform that action at this time.
0 commit comments