Skip to content

Commit 981ba73

Browse files
author
fbchen
committed
optimize key set
1 parent a25fdd3 commit 981ba73

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/src/constraint_layout.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ const Object _baseConstraint = Object();
398398

399399
extension ConstrainedWidgetsExt on Widget {
400400
Constrained applyConstraint({
401-
Key? key,
402401
ConstraintId? id,
403402
double width = wrapContent,
404403
double height = wrapContent,
@@ -531,7 +530,6 @@ extension ConstrainedWidgetsExt on Widget {
531530
}
532531

533532
Constrained apply({
534-
Key? key,
535533
required Constraint constraint,
536534
}) {
537535
return Constrained(
@@ -542,7 +540,6 @@ extension ConstrainedWidgetsExt on Widget {
542540
}
543541

544542
UnConstrained applyConstraintId({
545-
Key? key,
546543
required ConstraintId id,
547544
}) {
548545
return UnConstrained(
@@ -554,7 +551,7 @@ extension ConstrainedWidgetsExt on Widget {
554551

555552
/// When the layout is complex, if the child elements need to be repainted frequently, it
556553
/// is recommended to use RepaintBoundary to improve performance.
557-
RepaintBoundary offPaint({Key? key}) {
554+
RepaintBoundary offPaint() {
558555
return RepaintBoundary(
559556
key: key,
560557
child: this,
@@ -564,7 +561,6 @@ extension ConstrainedWidgetsExt on Widget {
564561
/// If you can't declare a child element as const and it won't change, you can use OffBuildWidget
565562
/// to avoid the rebuilding of the child element.
566563
OffBuildWidget offBuild({
567-
Key? key,
568564
required String id,
569565
}) {
570566
return OffBuildWidget(

0 commit comments

Comments
 (0)