isDirty property

bool isDirty

Checks if Element is 'mounted' or 'dirty' and marked for rebuild.

Implementation

bool get isDirty => !mounted || ((context as Element).dirty);