From 7a950eb3a70830ef699f011f9f5541fcf02292fe Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Thu, 6 Sep 2018 12:28:51 -0700 Subject: [PATCH] Update InheritedModel doc (#21501) --- packages/flutter/lib/src/widgets/inherited_model.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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')) /// } /// /// // ...