Beginner Flutter
Q4 / 100

What is the key difference between StatelessWidget and StatefulWidget?

Correct! Well done.

Incorrect.

The correct answer is B) StatelessWidget has no mutable state; StatefulWidget has a mutable State object that can trigger rebuilds

B

Correct Answer

StatelessWidget has no mutable state; StatefulWidget has a mutable State object that can trigger rebuilds

Explanation

StatelessWidget describes a part of the UI that does not depend on any mutable state. StatefulWidget is paired with a State object that holds mutable data and can trigger rebuilds by calling setState().

Progress
4/100