Beginner Flutter
Q35 / 100

What does the build() method return in a Flutter widget?

Correct! Well done.

Incorrect.

The correct answer is B) A Widget describing the part of the UI this widget represents

B

Correct Answer

A Widget describing the part of the UI this widget represents

Explanation

The build() method must return a Widget. Flutter calls build() whenever the widget needs to be rendered or rebuilt (e.g., after setState()). It should be a pure function of the widget's properties and state.

Progress
35/100