Advanced Flutter
Q93 / 100

What is an InheritedModel and how does it differ from InheritedWidget?

Correct! Well done.

Incorrect.

The correct answer is B) A more fine-grained InheritedWidget that lets dependents specify which aspect they care about, preventing rebuilds when an irrelevant aspect changes

B

Correct Answer

A more fine-grained InheritedWidget that lets dependents specify which aspect they care about, preventing rebuilds when an irrelevant aspect changes

Explanation

InheritedModel extends InheritedWidget to support aspect-based dependency. Dependents register which aspect they depend on and only rebuild when that aspect changes — unlike InheritedWidget which rebuilds all dependents on any change.

Progress
93/100