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