Correct the return type of addRetained (flutter/engine#9025)

It should return void as SceneBuilder::addRetained is returning void.
Thanks yjbanov@ for finding this typo!
This commit is contained in:
liyuqian
2019-05-20 15:58:35 -07:00
committed by GitHub
parent c5fd27ad8c
commit 3aed059cc5

View File

@@ -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.
///