提交 9c6fc0fb 编写于 作者: A Adam Barth 提交者: GitHub

Add default hint values (#2818)

This is required because boolean values cannot be null.
上级 789c1e79
......@@ -175,11 +175,11 @@ class SceneBuilder extends NativeFieldWrapperClass2 {
/// Adds a [Picture] to the scene.
///
/// The picture is rasterized at the given offset.
void addPicture(Offset offset, Picture picture, { bool isComplex, bool willChange }) {
void addPicture(Offset offset, Picture picture, { bool isComplexHint: false, bool willChangeHint: false }) {
int hints = 0;
if (isComplex)
if (isComplexHint)
hints |= 1;
if (willChange)
if (willChangeHint)
hints |= 2;
_addPicture(offset.dx, offset.dy, picture, hints);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册