Future.then
Register a callback to be invoked when the future is resolved.
If the future is already resolved, the callback is invoked immediately.
Parameters
callback | The delegate to invoke with the resolved value. |
Returns
This future for method chaining.