dart then code example Example: dart then method myFunc().then(processValue) .catchError(handleError);