Checks if Element is 'mounted' or 'dirty' and marked for rebuild.
bool get isDirty => !mounted || ((context as Element).dirty);