Guest User

Untitled

a guest
Dec 15th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. RaisedButton(
  2. onPressed: () {
  3. MyModel model = ModelBinding.of<MyModel>(context);
  4. ModelBinding.update<MyModel>(context, MyModel(value: model.value + 1));
  5. },
  6. child: Text('Hello World ${ModelBinding.of<MyModel>(context).value}'),
  7. )
Add Comment
Please, Sign In to add comment