Shows or hides the widget based on isVisible.
isVisible
Widget isVisible(bool isVisible) { return isVisible ? this : const SizedBox.shrink(); }