mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
More minor cleanup around overriding fields to narrow types.
TBR=abarth Review URL: https://codereview.chromium.org/1189833004.
This commit is contained in:
parent
b3f47808bc
commit
bb53cd828c
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user