Skip to content

Instantly share code, notes, and snippets.

View extJo's full-sized avatar

Sungyun(Hunt) Jo extJo

View GitHub Profile
/*
ModelBinding<T>: a simple class for binding a Flutter app to a immutable
model of type T.
This is a complete application. The app shows the state of an instance of
MyModel in a button's label, and replaces its MyModel instance when the
button is pressed.
ModelBinding is an inherited widget that must be created in a context above