Skip to content

Commit c41a08f

Browse files
authored
Update InheritedWidget example parameter naming (#112137)
1 parent 463ee3d commit c41a08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter/lib/src/widgets/framework.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ abstract class ParentDataWidget<T extends ParentData> extends ProxyWidget {
16121612
/// }
16131613
///
16141614
/// @override
1615-
/// bool updateShouldNotify(FrogColor old) => color != old.color;
1615+
/// bool updateShouldNotify(FrogColor oldWidget) => color != oldWidget.color;
16161616
/// }
16171617
/// ```
16181618
/// {@end-tool}

0 commit comments

Comments
 (0)