Intermediate
Flutter
Q45 / 100
What does FutureBuilder do in Flutter?
Correct! Well done.
Incorrect.
The correct answer is B) A widget that builds itself based on the latest snapshot of a Future, handling loading, error, and done states
B
Correct Answer
A widget that builds itself based on the latest snapshot of a Future, handling loading, error, and done states
Explanation
FutureBuilder takes a Future and a builder function, rebuilding the widget whenever the Future's state changes. The builder receives an AsyncSnapshot with connectionState (waiting/done/error) and the data or error.
Progress
45/100