My data is something like this:
{ \"five\": { \"group\": { \"one\": { \"order\": 2 }, \"six\": { \"order\": 1 }
There is no way to get back from async execution to sync execution.
To get a value from a Future there are two ways
Future
pass a callback to then(...)
then(...)
theFuture.then((val) { print(val); });
or use async/await for nicer syntax
async
await
Future foo() async { var val = await theFuture; print(val); }