Update InheritedModel doc (#21501)

This commit is contained in:
Hans Muller 2018-09-06 12:28:51 -07:00 committed by GitHub
parent 9506d1e15b
commit 7a950eb3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<String> dependencies) {
/// return (a != old.a && dependencies.contains('a'))
/// || (b != old.b && dependencies.contains('b'))
/// bool updateShouldNotifyDependent(ABModel old, Set<String> aspects) {
/// return (a != old.a && aspects.contains('a'))
/// || (b != old.b && aspects.contains('b'))
/// }
///
/// // ...