未验证 提交 3d2e9b24 编写于 作者: L liyuqian 提交者: GitHub

Correct the return type of addRetained (#9025)

It should return void as SceneBuilder::addRetained is returning void.
Thanks yjbanov@ for finding this typo!
上级 e3772232
......@@ -200,7 +200,7 @@ class SceneBuilder extends NativeFieldWrapperClass2 {
/// Therefore, when implementing a subclass of the [Layer] concept defined in
/// the rendering layer of Flutter's framework, once this is called, there's
/// no need to call [addToScene] for its children layers.
EngineLayer addRetained(EngineLayer retainedLayer) native 'SceneBuilder_addRetained';
void addRetained(EngineLayer retainedLayer) native 'SceneBuilder_addRetained';
/// Adds an object to the scene that displays performance statistics.
///
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册