Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DynamicValues {
- static Widget get image => floop['image'];
- static set image(Widget widget) => floop['image'] = widget;
- // Here should go all the reads and writes to `floop`
- }
- /// It's also possible to create a local [ObservedMap].
- /// `floop` is just an instance of [ObservedMap].
- class DynamicValuesLocal {
- static ObservedMap<String, dynamic> dyn = ObservedMap();
- static Widget get image => dyn['image'];
- static set image(Widget widget) => dyn['image'] = widget;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement