Replace setBoxDecoration() with a decoration property. (part II)
This was supposed to be in https://codereview.chromium.org/1153893006/ TBR=abarth Review URL: https://codereview.chromium.org/1151383003
This commit is contained in:
@@ -98,10 +98,12 @@ class RenderDecoratedSector extends RenderSector {
|
||||
|
||||
RenderDecoratedSector(BoxDecoration decoration) : _decoration = decoration;
|
||||
|
||||
void setBoxDecoration(BoxDecoration decoration) {
|
||||
if (_decoration == decoration)
|
||||
BoxDecoration _decoration;
|
||||
BoxDecoration get decoration => _decoration;
|
||||
void set decoration (BoxDecoration value) {
|
||||
if (value == _decoration)
|
||||
return;
|
||||
_decoration = decoration;
|
||||
_decoration = value;
|
||||
markNeedsPaint();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user