Wrap this with Visibility Widget.
Visibility
Widget visibility(bool visible) => Visibility(visible: visible, child: this);