More minor cleanup around overriding fields to narrow types.

TBR=abarth

Review URL: https://codereview.chromium.org/1189833004.
This commit is contained in:
Hixie 2015-06-16 09:33:17 -07:00
parent b3f47808bc
commit bb53cd828c
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ abstract class RenderBox extends RenderObject {
_debugDoingThisLayout = false;
}
BoxConstraints get constraints { BoxConstraints result = super.constraints; return result; }
BoxConstraints get constraints => super.constraints;
void performResize() {
// default behaviour for subclasses that have sizedByParent = true
size = constraints.constrain(Size.zero);

View File

@ -25,7 +25,7 @@ abstract class FixedHeightScrollable extends Scrollable {
}
ScrollBehavior createScrollBehavior() => new OverscrollBehavior();
OverscrollBehavior get scrollBehavior => super.scrollBehavior as OverscrollBehavior;
OverscrollBehavior get scrollBehavior => super.scrollBehavior;
int _itemCount = 0;
int get itemCount => _itemCount;