Add missing trailing commas (#28673)
* add trailing commas on list/map/parameters * add trailing commas on Invocation with nb of arg>1 * add commas for widget containing widgets * add trailing commas if instantiation contains trailing comma * revert bad change
This commit is contained in:
committed by
GitHub
parent
046f960ae2
commit
387f885481
@@ -14,7 +14,7 @@ class SectorConstraints extends Constraints {
|
||||
this.minDeltaRadius = 0.0,
|
||||
this.maxDeltaRadius = double.infinity,
|
||||
this.minDeltaTheta = 0.0,
|
||||
this.maxDeltaTheta = kTwoPi
|
||||
this.maxDeltaTheta = kTwoPi,
|
||||
}) : assert(maxDeltaRadius >= minDeltaRadius),
|
||||
assert(maxDeltaTheta >= minDeltaTheta);
|
||||
|
||||
@@ -46,7 +46,7 @@ class SectorConstraints extends Constraints {
|
||||
@override
|
||||
bool debugAssertIsValid({
|
||||
bool isAppliedConstraint = false,
|
||||
InformationCollector informationCollector
|
||||
InformationCollector informationCollector,
|
||||
}) {
|
||||
assert(isNormalized);
|
||||
return isNormalized;
|
||||
@@ -58,11 +58,11 @@ class SectorDimensions {
|
||||
|
||||
factory SectorDimensions.withConstraints(
|
||||
SectorConstraints constraints,
|
||||
{ double deltaRadius = 0.0, double deltaTheta = 0.0 }
|
||||
{ double deltaRadius = 0.0, double deltaTheta = 0.0, }
|
||||
) {
|
||||
return SectorDimensions(
|
||||
deltaRadius: constraints.constrainDeltaRadius(deltaRadius),
|
||||
deltaTheta: constraints.constrainDeltaTheta(deltaTheta)
|
||||
deltaTheta: constraints.constrainDeltaTheta(deltaTheta),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ class RenderSectorRing extends RenderSectorWithChildren {
|
||||
RenderSectorRing({
|
||||
BoxDecoration decoration,
|
||||
double deltaRadius = double.infinity,
|
||||
double padding = 0.0
|
||||
double padding = 0.0,
|
||||
}) : _padding = padding,
|
||||
assert(deltaRadius >= 0.0),
|
||||
_desiredDeltaRadius = deltaRadius,
|
||||
@@ -263,7 +263,7 @@ class RenderSectorRing extends RenderSectorWithChildren {
|
||||
while (child != null) {
|
||||
final SectorConstraints innerConstraints = SectorConstraints(
|
||||
maxDeltaRadius: innerDeltaRadius,
|
||||
maxDeltaTheta: remainingDeltaTheta
|
||||
maxDeltaTheta: remainingDeltaTheta,
|
||||
);
|
||||
final SectorDimensions childDimensions = child.getIntrinsicDimensions(innerConstraints, childRadius);
|
||||
innerTheta += childDimensions.deltaTheta;
|
||||
@@ -294,7 +294,7 @@ class RenderSectorRing extends RenderSectorWithChildren {
|
||||
while (child != null) {
|
||||
final SectorConstraints innerConstraints = SectorConstraints(
|
||||
maxDeltaRadius: innerDeltaRadius,
|
||||
maxDeltaTheta: remainingDeltaTheta
|
||||
maxDeltaTheta: remainingDeltaTheta,
|
||||
);
|
||||
assert(child.parentData is SectorParentData);
|
||||
child.parentData.theta = innerTheta;
|
||||
@@ -334,7 +334,7 @@ class RenderSectorSlice extends RenderSectorWithChildren {
|
||||
RenderSectorSlice({
|
||||
BoxDecoration decoration,
|
||||
double deltaTheta = kTwoPi,
|
||||
double padding = 0.0
|
||||
double padding = 0.0,
|
||||
}) : _padding = padding, _desiredDeltaTheta = deltaTheta, super(decoration);
|
||||
|
||||
double _desiredDeltaTheta;
|
||||
@@ -377,7 +377,7 @@ class RenderSectorSlice extends RenderSectorWithChildren {
|
||||
while (child != null) {
|
||||
final SectorConstraints innerConstraints = SectorConstraints(
|
||||
maxDeltaRadius: remainingDeltaRadius,
|
||||
maxDeltaTheta: innerDeltaTheta
|
||||
maxDeltaTheta: innerDeltaTheta,
|
||||
);
|
||||
final SectorDimensions childDimensions = child.getIntrinsicDimensions(innerConstraints, childRadius);
|
||||
childRadius += childDimensions.deltaRadius;
|
||||
@@ -406,7 +406,7 @@ class RenderSectorSlice extends RenderSectorWithChildren {
|
||||
while (child != null) {
|
||||
final SectorConstraints innerConstraints = SectorConstraints(
|
||||
maxDeltaRadius: remainingDeltaRadius,
|
||||
maxDeltaTheta: innerDeltaTheta
|
||||
maxDeltaTheta: innerDeltaTheta,
|
||||
);
|
||||
child.parentData.theta = innerTheta;
|
||||
child.parentData.radius = childRadius;
|
||||
@@ -488,7 +488,7 @@ class RenderBoxToRenderSectorAdapter extends RenderBox with RenderObjectWithChil
|
||||
|
||||
Size getIntrinsicDimensions({
|
||||
double width = double.infinity,
|
||||
double height = double.infinity
|
||||
double height = double.infinity,
|
||||
}) {
|
||||
assert(child is RenderSector);
|
||||
assert(child.parentData is SectorParentData);
|
||||
@@ -556,7 +556,7 @@ class RenderBoxToRenderSectorAdapter extends RenderBox with RenderObjectWithChil
|
||||
class RenderSolidColor extends RenderDecoratedSector {
|
||||
RenderSolidColor(this.backgroundColor, {
|
||||
this.desiredDeltaRadius = double.infinity,
|
||||
this.desiredDeltaTheta = kTwoPi
|
||||
this.desiredDeltaTheta = kTwoPi,
|
||||
}) : super(BoxDecoration(color: backgroundColor));
|
||||
|
||||
double desiredDeltaRadius;
|
||||
|
||||
Reference in New Issue
Block a user