Commit 10591730 authored by Adam Barth's avatar Adam Barth

Use the .. pattern more in updateRenderObject

parent b0542344
...@@ -733,8 +733,9 @@ class IntrinsicWidth extends OneChildRenderObjectWidget { ...@@ -733,8 +733,9 @@ class IntrinsicWidth extends OneChildRenderObjectWidget {
RenderIntrinsicWidth createRenderObject() => new RenderIntrinsicWidth(stepWidth: stepWidth, stepHeight: stepHeight); RenderIntrinsicWidth createRenderObject() => new RenderIntrinsicWidth(stepWidth: stepWidth, stepHeight: stepHeight);
void updateRenderObject(RenderIntrinsicWidth renderObject, IntrinsicWidth oldWidget) { void updateRenderObject(RenderIntrinsicWidth renderObject, IntrinsicWidth oldWidget) {
renderObject.stepWidth = stepWidth; renderObject
renderObject.stepHeight = stepHeight; ..stepWidth = stepWidth
..stepHeight = stepHeight;
} }
} }
...@@ -768,8 +769,9 @@ class Baseline extends OneChildRenderObjectWidget { ...@@ -768,8 +769,9 @@ class Baseline extends OneChildRenderObjectWidget {
RenderBaseline createRenderObject() => new RenderBaseline(baseline: baseline, baselineType: baselineType); RenderBaseline createRenderObject() => new RenderBaseline(baseline: baseline, baselineType: baselineType);
void updateRenderObject(RenderBaseline renderObject, Baseline oldWidget) { void updateRenderObject(RenderBaseline renderObject, Baseline oldWidget) {
renderObject.baseline = baseline; renderObject
renderObject.baselineType = baselineType; ..baseline = baseline
..baselineType = baselineType;
} }
} }
...@@ -1036,8 +1038,9 @@ class IndexedStack extends StackRenderObjectWidgetBase { ...@@ -1036,8 +1038,9 @@ class IndexedStack extends StackRenderObjectWidgetBase {
void updateRenderObject(RenderIndexedStack renderObject, IndexedStack oldWidget) { void updateRenderObject(RenderIndexedStack renderObject, IndexedStack oldWidget) {
super.updateRenderObject(renderObject, oldWidget); super.updateRenderObject(renderObject, oldWidget);
renderObject.index = index; renderObject
renderObject.alignment = alignment; ..index = index
..alignment = alignment;
} }
} }
...@@ -1326,10 +1329,11 @@ class Flex extends MultiChildRenderObjectWidget { ...@@ -1326,10 +1329,11 @@ class Flex extends MultiChildRenderObjectWidget {
RenderFlex createRenderObject() => new RenderFlex(direction: direction, justifyContent: justifyContent, alignItems: alignItems, textBaseline: textBaseline); RenderFlex createRenderObject() => new RenderFlex(direction: direction, justifyContent: justifyContent, alignItems: alignItems, textBaseline: textBaseline);
void updateRenderObject(RenderFlex renderObject, Flex oldWidget) { void updateRenderObject(RenderFlex renderObject, Flex oldWidget) {
renderObject.direction = direction; renderObject
renderObject.justifyContent = justifyContent; ..direction = direction
renderObject.alignItems = alignItems; ..justifyContent = justifyContent
renderObject.textBaseline = textBaseline; ..alignItems = alignItems
..textBaseline = textBaseline;
} }
} }
...@@ -1576,15 +1580,16 @@ class RawImage extends LeafRenderObjectWidget { ...@@ -1576,15 +1580,16 @@ class RawImage extends LeafRenderObjectWidget {
); );
void updateRenderObject(RenderImage renderObject, RawImage oldWidget) { void updateRenderObject(RenderImage renderObject, RawImage oldWidget) {
renderObject.image = image; renderObject
renderObject.width = width; ..image = image
renderObject.height = height; ..width = width
renderObject.scale = scale; ..height = height
renderObject.color = color; ..scale = scale
renderObject.alignment = alignment; ..color = color
renderObject.fit = fit; ..alignment = alignment
renderObject.repeat = repeat; ..fit = fit
renderObject.centerSlice = centerSlice; ..repeat = repeat
..centerSlice = centerSlice;
} }
void debugFillDescription(List<String> description) { void debugFillDescription(List<String> description) {
...@@ -2113,11 +2118,12 @@ class Listener extends OneChildRenderObjectWidget { ...@@ -2113,11 +2118,12 @@ class Listener extends OneChildRenderObjectWidget {
); );
void updateRenderObject(RenderPointerListener renderObject, Listener oldWidget) { void updateRenderObject(RenderPointerListener renderObject, Listener oldWidget) {
renderObject.onPointerDown = onPointerDown; renderObject
renderObject.onPointerMove = onPointerMove; ..onPointerDown = onPointerDown
renderObject.onPointerUp = onPointerUp; ..onPointerMove = onPointerMove
renderObject.onPointerCancel = onPointerCancel; ..onPointerUp = onPointerUp
renderObject.behavior = behavior; ..onPointerCancel = onPointerCancel
..behavior = behavior;
} }
void debugFillDescription(List<String> description) { void debugFillDescription(List<String> description) {
...@@ -2175,8 +2181,9 @@ class IgnorePointer extends OneChildRenderObjectWidget { ...@@ -2175,8 +2181,9 @@ class IgnorePointer extends OneChildRenderObjectWidget {
); );
void updateRenderObject(RenderIgnorePointer renderObject, IgnorePointer oldWidget) { void updateRenderObject(RenderIgnorePointer renderObject, IgnorePointer oldWidget) {
renderObject.ignoring = ignoring; renderObject
renderObject.ignoringSemantics = ignoringSemantics; ..ignoring = ignoring
..ignoringSemantics = ignoringSemantics;
} }
} }
...@@ -2225,9 +2232,10 @@ class Semantics extends OneChildRenderObjectWidget { ...@@ -2225,9 +2232,10 @@ class Semantics extends OneChildRenderObjectWidget {
); );
void updateRenderObject(RenderSemanticAnnotations renderObject, Semantics oldWidget) { void updateRenderObject(RenderSemanticAnnotations renderObject, Semantics oldWidget) {
renderObject.container = container; renderObject
renderObject.checked = checked; ..container = container
renderObject.label = label; ..checked = checked
..label = label;
} }
void debugFillDescription(List<String> description) { void debugFillDescription(List<String> description) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment