diff --git a/packages/flutter/lib/src/widgets/inherited_model.dart b/packages/flutter/lib/src/widgets/inherited_model.dart index 98ff69be052..87dcf6088fd 100644 --- a/packages/flutter/lib/src/widgets/inherited_model.dart +++ b/packages/flutter/lib/src/widgets/inherited_model.dart @@ -62,14 +62,14 @@ import 'framework.dart'; /// final int b; /// /// @override -/// bool updateShouldNotify(ABCModel old) { -/// return return super.updateShouldNotify(old) || a != old.a || b != old.b; +/// bool updateShouldNotify(ABModel old) { +/// return a != old.a || b != old.b; /// } /// /// @override -/// bool updateShouldNotifyDependent(ABCModel old, Set dependencies) { -/// return (a != old.a && dependencies.contains('a')) -/// || (b != old.b && dependencies.contains('b')) +/// bool updateShouldNotifyDependent(ABModel old, Set aspects) { +/// return (a != old.a && aspects.contains('a')) +/// || (b != old.b && aspects.contains('b')) /// } /// /// // ...