Uses when clause to render the widget only when the condition is true.
T when(bool condition) { willRender = condition; return _child; }