What is a Future in Dart?
Why Interviewers Ask This
This is a classic screening question for Flutter roles. Hiring managers ask it early in interviews to gauge your baseline understanding and determine if you can communicate technical concepts clearly.
Answer
A Future in Dart represents a value or error that will be available at some point in the future — similar to a Promise in JavaScript. It is used for asynchronous operations like network requests or file reads that take time to complete. You work with Futures using async/await for readable sequential code, or the .then(), .catchError() chain. Futures complete exactly once with either a value or an error.
Common Mistake
A common mistake is memorizing definitions without understanding implications. When asked this question, go one level deeper — explain what happens when this concept is misused or ignored.