mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
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:
parent
492f5919c7
commit
58efa250e5
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue