Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ModelBinding extends InheritedWidget {
- ModelBinding({
- Key key,
- this.model = const Model(),
- Widget child,
- }) : assert(model != null), super(key: key, child: child);
- final Model model;
- @override
- bool updateShouldNotify(ModelBinding oldWidget) => model != oldWidget.model;
- }
Add Comment
Please, Sign In to add comment