Unverified Commit 7a950eb3 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Update InheritedModel doc (#21501)

parent 9506d1e1
......@@ -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'))
/// }
///
/// // ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment