Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RaisedButton(
- onPressed: () {
- MyModel model = ModelBinding.of<MyModel>(context);
- ModelBinding.update<MyModel>(context, MyModel(value: model.value + 1));
- },
- child: Text('Hello World ${ModelBinding.of<MyModel>(context).value}'),
- )
Add Comment
Please, Sign In to add comment