forked from firka/flutter
Replace some 'as' operators with equivalent code that doesn't do any checks in production mode.
R=abarth@chromium.org Review URL: https://codereview.chromium.org/1181453003
This commit is contained in:
@@ -71,7 +71,7 @@ abstract class RenderSector extends RenderObject {
|
||||
return new SectorDimensions.withConstraints(constraints);
|
||||
}
|
||||
|
||||
SectorConstraints get constraints => super.constraints as SectorConstraints;
|
||||
SectorConstraints get constraints { SectorConstraints result = super.constraints; return result; }
|
||||
void performResize() {
|
||||
// default behaviour for subclasses that have sizedByParent = true
|
||||
deltaRadius = constraints.constrainDeltaRadius(0.0);
|
||||
|
||||
Reference in New Issue
Block a user